Skip to content

Commit

Permalink
Add Dev Container config
Browse files Browse the repository at this point in the history
  • Loading branch information
amacneil committed Jul 10, 2024
1 parent dbeb393 commit ce6e325
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"dockerComposeFile": "../docker-compose.yml",
"service": "dev",
"workspaceFolder": "/src",
"overrideCommand": true
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# development image
# development stage
FROM golang:1.22.5 as dev
WORKDIR /src
ENV PATH="/src/typescript/node_modules/.bin:${PATH}"
Expand Down
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,15 @@ update-deps:
./node_modules/.bin/npm-check-updates --upgrade && \
npm install

.PHONY: docker-all
docker-all:
.PHONY: docker-build
docker-build:
docker-compose pull --ignore-buildable
docker-compose build

.PHONY: docker-all
docker-all: docker-build
docker-compose run --rm dev make all

.PHONY: docker-sh
docker-sh:
.PHONY: docker-dev
docker-dev:
-docker-compose run --rm dev

0 comments on commit ce6e325

Please sign in to comment.