-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up CI/CD for December release (#3)
* CICD for December pcesapps release * cicd * cicd * cicd * cicd
- Loading branch information
1 parent
db7f2f1
commit 20ec21c
Showing
2 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Usage: | ||
# | ||
# docker build -t pcesapps-dev:latest -t pcesapps:latest . | ||
# docker run -it --rm -v ~/pcesapps/extern:/tmp/extern ghcr.io/iti/pcesapps-dev | ||
# docker run -it --rm -v ~/pcesapps/extern:/tmp/extern ghcr.io/iti/pcesapps | ||
# | ||
FROM golang:1.23-bookworm | ||
|
||
# Add whatever Debian packages you want here. | ||
RUN apt-get -y update && \ | ||
apt-get install --no-install-recommends -y \ | ||
vim-nox && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Build the pcesapps app | ||
WORKDIR /pcesapps | ||
COPY . . | ||
RUN cd embedded/sim-dir && go mod tidy && go build -o /bin/sim sim.go exp.go | ||
|
||
# remember to use "-v" to map in /tmp/extern | ||
WORKDIR /tmp/extern |