Skip to content

Commit

Permalink
Moving dev container to a custom-built image. (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinswiber authored Sep 16, 2023
1 parent 3b6899f commit f280540
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "postman2openapi",
"dockerFile": "Dockerfile",
"postCreateCommand": "rustc --version && echo \"node $(node --version)\" && just --version",
"image": "ghcr.io/kevinswiber/postman2openapi-devcontainer",
"postCreateCommand": "rustc --version && echo \"node $(node --version)\" && just --version"
}
8 changes: 8 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ build-web:
npm run build --prefix ./web
build-nodejs:
wasm-pack build --release --out-dir ./nodejs --target nodejs
build-devcontainer-image:
NEEDS_BUILDER=$(docker buildx ls | grep -q postman2openapi; echo $?); \
if [[ "$NEEDS_BUILDER" = "1" ]]; then docker buildx create --name postman2openapi --bootstrap --use; \
else docker buildx use postman2openapi; fi && \
docker buildx build --platform linux/amd64,linux/arm64 --push -f ./.devcontainer/Dockerfile -t ghcr.io/kevinswiber/postman2openapi-devcontainer:latest .

push-devcontainer-image:
docker push ghcr.io/kevinswiber/postman2openapi-devcontainer:latest

fmt-check:
cargo fmt --check --all
Expand Down

0 comments on commit f280540

Please sign in to comment.