Skip to content

Instantly share code, notes, and snippets.

@santaklouse
Last active July 18, 2022 17:31
Show Gist options
  • Save santaklouse/6e8cc118c104a5acf27a7946b85e06d0 to your computer and use it in GitHub Desktop.
Save santaklouse/6e8cc118c104a5acf27a7946b85e06d0 to your computer and use it in GitHub Desktop.
Creates i2p-zero build inside docker container and copy it to current directory (https://github.com/i2p-zero/i2p-zero)
#!/usr/bin/env bash
containerId=$(docker run -td --rm ubuntu)
docker exec -ti $containerId bash -c '\
apt-get update \
&& apt-get -y install git wget zip unzip \
&& git clone https://github.com/i2p-zero/i2p-zero.git --depth 1 \
&& cd i2p-zero && bash bin/build-all-and-zip.sh'
docker cp $containerId:/i2p-zero/dist-zip ./
docker container stop $containerId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment