Skip to content

Commit

Permalink
Change devcontainer to docker-compose format
Browse files Browse the repository at this point in the history
Use local tagged image instead of the 3rd party image
  • Loading branch information
takenagain committed May 23, 2024
1 parent 7022813 commit 95ce8bf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"name": "flutter_docker",
"context": "..",
"dockerFile": "../.docker/android-dev.dockerfile",
"dockerComposeFile": "../.docker/docker-compose.yml",
"service": "komodo-wallet-mobile",
"remoteUser": "komodo",
"postAttachCommand": "sh .docker/dev-setup.sh",
"runArgs": [
"--privileged"
],
"workspaceMount": "source=${localWorkspaceFolder},target=/home/komodo/workspace,type=bind,consistency=delegated",
"workspaceFolder": "/home/komodo/workspace"
}
2 changes: 1 addition & 1 deletion .docker/android-dev.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/cirruslabs/android-sdk:34 as final
FROM komodo/android-sdk:34 as final

ENV FLUTTER_VERSION="2.8.1"
ENV FLUTTER_HOME "/home/komodo/.flutter-sdk"
Expand Down
17 changes: 17 additions & 0 deletions .docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
services:
android-sdk:
build:
context: ..
dockerfile: .docker/android-sdk.dockerfile
image: komodo/android-sdk:34

komodo-wallet-mobile:
build:
context: ..
dockerfile: .docker/android-dev.dockerfile
image: komodo/komodo-wallet-mobile
volumes:
- ../:/home/komodo/workspace
depends_on:
- android-sdk
command: "/bin/sh -c 'while true; do sleep 1000; done'"

0 comments on commit 95ce8bf

Please sign in to comment.