Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
spion committed Aug 18, 2024
1 parent 84e318a commit 04c458e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 16 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ jobs:
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: sudo ./docker/run-docker-test.sh
script: |
export PATH=/usr/local/lib/android/sdk/platform-tools:$PATH
sudo ./tests/run.sh
# services:
# emulator:
# image: budtmo/docker-android:emulator_12.0
Expand Down
25 changes: 11 additions & 14 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04 as buildenv
FROM ubuntu:latest as buildenv
RUN apt update
RUN apt install -y build-essential git pkg-config
RUN apt install -y libfuse-dev fuse
Expand All @@ -7,25 +7,22 @@ WORKDIR /src
RUN make


FROM budtmo/docker-android-x86-10.0
RUN apt update
FROM us-docker.pkg.dev/android-emulator-268719/images/30-google-x64:30.1.2
# FROM docker.io/budtmo/docker-android:emulator_12.0
# RUN apt update

RUN apt install -y fuse libfuse-dev
# RUN apt install -y fuse libfuse-dev

ADD ./* /src/
# ADD ./* /src/
ADD ./tests/* /src/tests/
ADD ./docker/* /src/docker/

RUN chmod +x /src/docker/run-docker-test.sh
RUN chmod +x /src/docker/*.sh

COPY --from=buildenv /src/adbfs /usr/bin/adbfs
RUN chmod +x /usr/bin/adbfs

WORKDIR /src
CMD /src/docker/run-docker-test.sh







# CMD /src/docker/run-docker-test.sh
ENTRYPOINT [ "sudo", "bash", "/src/docker/run-test.sh" ]
# ENTRYPOINT [ "bash" ]
12 changes: 12 additions & 0 deletions docker/run-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

export SCRIPT_PATH="docker-android"
export WORK_PATH="/home/androidusr"
export APP_PATH=${WORK_PATH}/${SCRIPT_PATH}
export LOG_PATH=${WORK_PATH}/logs
export SUPERVISORD_CONFIG_PATH="${APP_PATH}/mixins/configs/process"
export DEVICE_TYPE=emulator

/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-port.conf & \
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-base.conf & \

bash $(dirname $0)/../tests/run.sh
1 change: 0 additions & 1 deletion docker/run-docker-test.sh → tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

WAIT_TIME=60

export PATH=/usr/local/lib/android/sdk/platform-tools:$PATH

wait_available() {

Expand Down

0 comments on commit 04c458e

Please sign in to comment.