Mayank
5 years ago
No known key found for this signature in database
GPG Key ID: D037D60476CE748C
3 changed files with
13 additions and
14 deletions
-
.github/workflows/on-push.yml
-
build-test.sh
-
stage2/05-docker-compose/01-run.sh
|
@ -7,5 +7,10 @@ jobs: |
|
|
runs-on: ubuntu-18.04 |
|
|
runs-on: ubuntu-18.04 |
|
|
steps: |
|
|
steps: |
|
|
- uses: actions/checkout@v1 |
|
|
- uses: actions/checkout@v1 |
|
|
|
|
|
- name: Enable experimental features in Docker |
|
|
|
|
|
- run: | |
|
|
|
|
|
sudo rm -rf /etc/docker/daemon.json \ |
|
|
|
|
|
echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json \ |
|
|
|
|
|
sudo systemctl restart docker |
|
|
- name: Run Build script |
|
|
- name: Run Build script |
|
|
run: sudo ./build-test.sh |
|
|
run: sudo ./build-test.sh |
|
|
|
@ -1,15 +1,10 @@ |
|
|
#!/bin/bash -e |
|
|
#!/bin/bash -e |
|
|
|
|
|
|
|
|
docker --version |
|
|
|
|
|
sudo rm -rf /etc/docker/daemon.json |
|
|
|
|
|
echo '{"experimental": true}' | sudo tee -a /etc/docker/daemon.json |
|
|
|
|
|
sudo systemctl restart docker |
|
|
|
|
|
wget -q "https://raw.githubusercontent.com/getumbrel/umbrel-compose/master/docker-compose.yml" |
|
|
wget -q "https://raw.githubusercontent.com/getumbrel/umbrel-compose/master/docker-compose.yml" |
|
|
IMAGES=$(grep '^\s*image' docker-compose.yml | sed 's/image://' | sed 's/\"//g' | sed '/^$/d;s/[[:blank:]]//g' | sort | uniq) |
|
|
IMAGES=$(grep '^\s*image' docker-compose.yml | sed 's/image://' | sed 's/\"//g' | sed '/^$/d;s/[[:blank:]]//g' | sort | uniq) |
|
|
echo "List of images to download: $IMAGES" |
|
|
echo "List of images to download: $IMAGES" |
|
|
while IFS= read -r image; do |
|
|
while IFS= read -r image; do |
|
|
docker pull --platform=linux/arm/v7 $image |
|
|
docker pull --platform=linux/arm/v7 $image |
|
|
done <<< "$IMAGES" |
|
|
done <<< "$IMAGES" |
|
|
docker images |
|
|
|
|
|
docker save $IMAGES -o umbrel-docker-images.tar |
|
|
docker save $IMAGES -o umbrel-docker-images.tar |
|
|
ls -al |
|
|
ls -al |
|
@ -32,15 +32,14 @@ cp files/compose-service ${ROOTFS_DIR}/etc/init.d/umbrelbox |
|
|
echo "Docker stuff installed!" |
|
|
echo "Docker stuff installed!" |
|
|
|
|
|
|
|
|
echo "Bundling Docker images required to run Umbrel services" |
|
|
echo "Bundling Docker images required to run Umbrel services" |
|
|
apt-get update |
|
|
|
|
|
apt-get install golang-go |
|
|
|
|
|
go version |
|
|
|
|
|
wget -q "https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh" |
|
|
|
|
|
wget -q "https://raw.githubusercontent.com/getumbrel/umbrel-compose/master/docker-compose.yml" |
|
|
wget -q "https://raw.githubusercontent.com/getumbrel/umbrel-compose/master/docker-compose.yml" |
|
|
IMAGES=$(grep '^\s*image' docker-compose.yml | sed 's/image://' | sed 's/\"//g' | sed '/^$/d;s/[[:blank:]]//g' | sort | uniq | tr \\n " ") |
|
|
IMAGES=$(grep '^\s*image' docker-compose.yml | sed 's/image://' | sed 's/\"//g' | sed '/^$/d;s/[[:blank:]]//g' | sort | uniq) |
|
|
echo "List of images to download: $IMAGES" |
|
|
echo "List of images to download: $IMAGES" |
|
|
chmod +x ./download-frozen-image-v2.sh |
|
|
|
|
|
./download-frozen-image-v2.sh docker-images "${IMAGES//\"}" |
|
|
|
|
|
|
|
|
|
|
|
mkdir ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/images |
|
|
while IFS= read -r image; do |
|
|
cp -avr docker-images/ ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/images |
|
|
docker pull --platform=linux/arm/v7 $image |
|
|
|
|
|
done <<< "$IMAGES" |
|
|
|
|
|
|
|
|
|
|
|
docker save $IMAGES -o umbrel-docker-images.tar |
|
|
|
|
|
cp umbrel-docker-images.tar ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/umbrel-docker-images.tar |