Thank you.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make temp file that will cause iocage to install some packages | |
echo '{"pkgs":["ca_root_nss"]}' > /tmp/pkg.json | |
# create jail | |
iocage create -n "rslsync" -p /tmp/pkg.json -r 11.3-RELEASE ip4_addr="vnet0|YOURRESILIOIP/24" defaultrouter="ROUTERIP" vnet="on" allow_raw_sockets="1" boot="on" | |
# remove the temp file | |
rm /tmp/pkg.json | |
#make our iocage directories | |
iocage exec rslsync mkdir -p /config | |
iocage exec rslsync mkdir -p /mnt/syncdata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update && \ | |
apt-get -y install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common && \ | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add - && \ | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
build_and_test: | |
# ... insert your test suite here | |
docker_push: | |
# Build app container and push it to the GCR registry | |
# Note: we want to build and push an image with tags based on both | |
# the Git commit hash AND the branch name. This way, we can refer to |