Skip to content

Commit 06d2e7a

Browse files
committed
build: update docker and make files
1 parent 5010281 commit 06d2e7a

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.dll
55
*.so
66
*.dylib
7+
crawler_app
78

89
# Test binary, built with `go test -c`
910
*.test

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: all help setup vet lint deadcode vulncheck tests integration-tests all-tests cover sonarqube-up sonarqube-down sonarqube-analysis fmt compose-ps compose-up compose-down build build-run-api clean doc
22

3-
APP_NAME=crawler
3+
APP_NAME=crawler_app
44

55
## help: show this help.
66
help:
@@ -62,15 +62,15 @@ fmt:
6262

6363
## compose-ps: list all containers running
6464
compose-ps:
65-
docker-compose -f build/docker-compose.yml ps
65+
docker compose -f build/docker-compose.yml ps
6666

6767
## compose-up: start API and dependencies
6868
compose-up:
69-
docker-compose -f build/docker-compose.yml up -d
69+
docker compose -f build/docker-compose.yml up -d
7070

7171
## compose-down: stop API and dependencies
7272
compose-down:
73-
docker-compose -f build/docker-compose.yml down
73+
docker compose -f build/docker-compose.yml down
7474

7575
## build: create an executable of the application
7676
build:

build/Dockerfile_base

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
##### Setup
22

3-
FROM golang:1.21-alpine as setup
3+
FROM golang:1.22-alpine as setup
44
RUN apk add git make
55

66
WORKDIR /app

build/docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
dockerfile: build/Dockerfile_base
1818
container_name: crawler-api
1919
command:
20-
- ./crawler
20+
- ./crawler_app
2121
- api
2222
environment:
2323
LOG_LEVEL: ${LOG_LEVEL}
@@ -57,7 +57,7 @@ services:
5757
ports:
5858
- ${PROMETHEUS_PORT}:${PROMETHEUS_PORT}
5959
volumes:
60-
- /metrics/prometheus:/etc/prometheus
60+
- ../metrics/prometheus:/etc/prometheus
6161
- prometheus-data:/metrics/prometheus
6262
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
6363

0 commit comments

Comments
 (0)