-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:gucio321/tic-tac-go
- Loading branch information
Showing
3 changed files
with
28 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
go-version: '1.18.x' | ||
- uses: actions/checkout@v3 | ||
- name: golangci-lint | ||
uses: golangci/[email protected].0 | ||
uses: golangci/[email protected].1 | ||
with: | ||
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version | ||
version: v1.45.0 | ||
|
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 |
---|---|---|
@@ -1,9 +1,22 @@ | ||
FROM golang:latest | ||
FROM docker.io/library/golang:1.19.3-buster | ||
|
||
RUN apt-get update | ||
|
||
# install dependencies required to run giu application | ||
RUN apt-get install -y libgtk-3-dev libasound2-dev libxxf86vm-dev | ||
|
||
# set workidr | ||
WORKDIR /app | ||
|
||
# move all the stuff into working directory | ||
ADD . /app | ||
|
||
# go-get pakcages (I recommend using go's vendoring-mode since it makes modules downloading super-fast | ||
# as they are in fact already downloaded and stored by previous command) | ||
RUN go get -d ./... | ||
|
||
CMD go run github.com/gucio321/tic-tac-go/cmd/terminal-game | ||
# pre-build binaries to make running them faster | ||
RUN go build github.com/gucio321/tic-tac-go/cmd/giu-game | ||
|
||
# define command to run | ||
CMD go run github.com/gucio321/tic-tac-go/cmd/giu-game |
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,12 @@ | ||
version: "3" | ||
|
||
services: | ||
app: | ||
build: . | ||
environment: | ||
- DISPLAY=${DISPLAY} | ||
volumes: | ||
- /tmp/.X11-unix:/tmp/.X11-unix | ||
security_opt: | ||
- label:type:container_runtime_t | ||
network_mode: bridge |