-
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.
- Loading branch information
Showing
9 changed files
with
62 additions
and
23 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
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,7 +1,12 @@ | ||
# Go sample application | ||
|
||
## Build the image | ||
### Usage | ||
|
||
```bash | ||
docker build --tag go_hello:1.0 . | ||
# Build image | ||
task build | ||
|
||
# Linting | ||
task lint-dockerfile | ||
task lint-yaml | ||
``` |
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,5 +1,5 @@ | ||
module github.com/egorsmkv/laravel-boilerplate/apps/go-hello | ||
|
||
go 1.22.5 | ||
go 1.23.0 | ||
|
||
require github.com/pebbe/zmq4 v1.2.11 |
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,14 @@ | ||
version: '3' | ||
|
||
tasks: | ||
build: | ||
cmds: | ||
- docker build --tag go_hello:1.0 . | ||
|
||
lint-dockerfile: | ||
cmds: | ||
- docker run --rm -i hadolint/hadolint < Dockerfile | ||
|
||
lint-yaml: | ||
cmds: | ||
- yamllint -d relaxed taskfile.yml |
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,11 +1,11 @@ | ||
FROM python:3.12-slim | ||
|
||
RUN pip install --no-cache-dir pyzmq | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
EXPOSE 5555 | ||
|
||
CMD ["python", "/app/server.py"] |
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,7 +1,12 @@ | ||
# Python sample application | ||
|
||
## Build the image | ||
### Usage | ||
|
||
```bash | ||
docker build --tag python_hello:1.0 . | ||
# Build image | ||
task build | ||
|
||
# Linting | ||
task lint-dockerfile | ||
task lint-yaml | ||
``` |
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 @@ | ||
pyzmq==26.1.1 |
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,14 @@ | ||
version: '3' | ||
|
||
tasks: | ||
build: | ||
cmds: | ||
- docker build --tag python_hello:1.0 . | ||
|
||
lint-dockerfile: | ||
cmds: | ||
- docker run --rm -i hadolint/hadolint < Dockerfile | ||
|
||
lint-yaml: | ||
cmds: | ||
- yamllint -d relaxed taskfile.yml |