Skip to content

Commit

Permalink
add docker back to devpod
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codes committed May 21, 2024
1 parent f34976f commit 20642f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"version": "23.0.7"
},
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "7.0.403"
},
Expand All @@ -13,7 +16,7 @@
"ghcr.io/devcontainers/features/powershell:1": {}
},
"customizations": {
"devpod": {
"devpod": {
"prebuildRepository": "ghcr.io/andrew-codes/playnite-web"
},
"vscode": {
Expand Down
17 changes: 8 additions & 9 deletions .devcontainer/post-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ git lfs install

set -o allexport
. $PWD/local.env
. $PWD/dev.env
set +o allexport

mkdir -p .data/mongodb
# docker stop playnite-web-db || true
# docker container rm playnite-web-db || true
# docker run --rm --name playnite-web-db -d \
# --network host \
# -e MONGO_INITDB_ROOT_USERNAME=$MONGO_INITDB_ROOT_USERNAME \
# -e MONGO_INITDB_ROOT_PASSWORD=$MONGO_INITDB_ROOT_PASSWORD \
# -v $PWD/.data/mongodb:/data/db \
# mongo:7.0.3-jammy
docker stop playnite-web-db || true
docker container rm playnite-web-db || true
docker run --rm --name playnite-web-db -d \
--network host \
-e MONGO_INITDB_ROOT_USERNAME=$MONGO_INITDB_ROOT_USERNAME \
-e MONGO_INITDB_ROOT_PASSWORD=$MONGO_INITDB_ROOT_PASSWORD \
-v $PWD/.data/mongodb:/data/db \
mongo:7.0.3-jammy

mosquitto_passwd -b -c /etc/mosquitto/passwd $MQTT_USERNAME $MQTT_PASSWORD
echo -e "allow_anonymous false
Expand Down

0 comments on commit 20642f0

Please sign in to comment.