Skip to content

Commit d081242

Browse files
authored
Merge pull request #34 from menny/compose-example
Example docker-compose file
2 parents 1e1596c + c15da4b commit d081242

4 files changed

Lines changed: 31 additions & 3 deletions

File tree

.github/versions.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
IMAGE_VERSION=1.21.8
1+
IMAGE_VERSION=1.21.9
22
NDK_VERSION=27.2.12479018
33
BAZELISK_VERSION=v1.26.0

android_dev/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LABEL version="${IMAGE_VERSION}-${GEMINI_CLI_VERSION}"
1010
LABEL maintainer="menny@evendanan.net"
1111

1212
# Install nodejs and pnpm. Taken from https://nodejs.org/en/download/current
13-
ENV NVM_DIR /opt/nvm
13+
ENV NVM_DIR=/opt/nvm
1414
RUN mkdir -p ${NVM_DIR}
1515
# Download and install nvm
1616
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

android_dev/docker-compose.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: '3.8'
2+
services:
3+
android-dev-box:
4+
image: menny/android_dev:latest
5+
restart: 'no'
6+
tty: true
7+
stdin_open: true
8+
environment:
9+
- GIT_REPO=AnySoftKeyboard/AnySoftKeyboard
10+
- GIT_BRANCH=main
11+
- GIT_PROVIDER=github.com
12+
- ACTUAL_USER=menny
13+
- ACTUAL_PASSWORD=blahblah
14+
volumes:
15+
- /home/menny/.ssh:/root/.ssh:ro
16+
- /home/menny/.ssh:/home/menny/.ssh_original:ro
17+
- /home/menny/.gnupg:/home/menny/.gnupg_original:ro
18+
- /home/menny/.gitconfig:/home/menny/.gitconfig_original:ro
19+
- /home/menny/.gemini:/home/menny/.gemini_original:ro
20+
- /home/menny/.filebrowser/srv/dev_box:/home/menny/shared_srv
21+
- /etc/ssh/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key:ro
22+
- /etc/ssh/ssh_host_rsa_key.pub:/etc/ssh/ssh_host_rsa_key.pub:ro
23+
- /etc/ssh/ssh_host_ecdsa_key:/etc/ssh/ssh_host_ecdsa_key:ro
24+
- /etc/ssh/ssh_host_ecdsa_key.pub:/etc/ssh/ssh_host_ecdsa_key.pub:ro
25+
- /etc/ssh/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key:ro
26+
- /etc/ssh/ssh_host_ed25519_key.pub:/etc/ssh/ssh_host_ed25519_key.pub:ro
27+
ports:
28+
- 2201:22

local_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
2-
32
set -e
43

54
# Source the versions.env file to get default values
65
source .github/versions.env
6+
echo "Will use args: IMAGE_VERSION=${IMAGE_VERSION}, NDK_VERSION=${NDK_VERSION}, BAZELISK_VERSION=${BAZELISK_VERSION}"
77

88
function build_image() {
99
local image_name="$1"

0 commit comments

Comments
 (0)