Mayank Chhabra
5 years ago
committed by
GitHub
10 changed files with 65 additions and 63 deletions
@ -0,0 +1,53 @@ |
|||
name: Build image on push |
|||
on: |
|||
push: |
|||
branches: |
|||
- '*' |
|||
|
|||
jobs: |
|||
build: |
|||
|
|||
runs-on: ubuntu-18.04 |
|||
|
|||
steps: |
|||
|
|||
- uses: actions/checkout@v1 |
|||
|
|||
- name: Run Apt-get update |
|||
run: sudo apt-get update |
|||
|
|||
- name: Install dependencies |
|||
run: sudo apt-get -y install quilt qemu-user-static debootstrap bsdtar |
|||
|
|||
- name: Nuke current Docker installation |
|||
run: | |
|||
sudo systemctl stop docker |
|||
sudo apt-get purge docker-ce docker-ce-cli containerd.io moby-engine moby-cli |
|||
sudo rm -rf /var/lib/docker |
|||
|
|||
- name: Re-install Docker |
|||
run: | |
|||
curl -fsSL https://get.docker.com -o get-docker.sh |
|||
sudo sh get-docker.sh |
|||
docker --version |
|||
|
|||
- 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 |
|||
run: sudo ./build.sh |
|||
|
|||
- name: Copy ZIP to current working dir |
|||
run: cp deploy/*.zip ./ |
|||
|
|||
- name: Debug current working dir |
|||
run: ls -la |
|||
|
|||
- name: Upload artifact |
|||
uses: actions/upload-artifact@v2 |
|||
with: |
|||
name: umbr3l-lite.zip |
|||
path: ./umbr3l-lite.zip |
@ -1,7 +0,0 @@ |
|||
# Save password (for createwallet script). |
|||
# We will remove this later when a more suitable secure system is finalized. |
|||
touch $ROOTFS_DIR/home/$FIRST_USER_NAME/.save_password |
|||
|
|||
echo "Executables directory" |
|||
mkdir -p $ROOTFS_DIR/home/$FIRST_USER_NAME/bin |
|||
|
@ -1,10 +0,0 @@ |
|||
# TODO: configure username and password (internally) |
|||
|
|||
echo "Downloading password utility" |
|||
cd ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/bin |
|||
curl "https://raw.githubusercontent.com/bitcoin/bitcoin/master/share/rpcauth/rpcauth.py" 2>/dev/null 1>rpcauth.py |
|||
chmod 755 rpcauth.py |
|||
|
|||
on_chroot << EOF |
|||
chown -R ${FIRST_USER_NAME}:${FIRST_USER_NAME} /home/${FIRST_USER_NAME} |
|||
EOF |
@ -1,6 +0,0 @@ |
|||
# TODO: configure username and password (internally) |
|||
|
|||
chmod 644 files/torrc |
|||
mkdir -p ${ROOTFS_DIR}/etc/tor/ |
|||
echo "Overriding TORRC" |
|||
cp files/torrc ${ROOTFS_DIR}/etc/tor/torrc |
@ -1,21 +0,0 @@ |
|||
SocksPort 9050 # Default: Bind to localhost:9050 for local connections. |
|||
|
|||
Log notice syslog |
|||
Log debug file /var/log/tor/debug.log |
|||
|
|||
#RunAsDaemon 1 |
|||
|
|||
DataDirectory /var/lib/tor |
|||
ControlPort 9051 |
|||
# Default password for umbrel tor |
|||
HashedControlPassword 16:50A873DF18C00F4A6048BF1CEF7E7AA66478F0B5134DA4369D80657F26 |
|||
# Backwards compatibility |
|||
CookieAuthentication 1 |
|||
|
|||
# Allow this for now |
|||
# TOR HOSTNAME |
|||
HiddenServiceDir /var/lib/tor/sshd |
|||
HiddenServicePort 22 127.0.0.1:22 |
|||
|
|||
HiddenServiceDir /var/lib/tor/web |
|||
HiddenServicePort 80 127.0.0.1:80 |
Loading…
Reference in new issue