Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix in Dockerfile and docker-compose.yaml #112

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
## Stage 1 - Go Build
##############################################################

FROM golang:1.21.6-alpine AS builder
FROM golang:1.21.6-bookworm AS builder

# Installing necessary packages
# make for Makefile support
# sqlite-libs and sqlite-dev for SQLite support
# build-base for common build requirements
RUN apk add --no-cache make gcc sqlite-libs sqlite-dev build-base
# sqlite3 and libsqlite3-dev for SQLite support
# build-essential for common build requirements
RUN apt-get update && apt-get install -y --no-install-recommends \
make gcc sqlite3 libsqlite3-dev build-essential && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# Set the Current Working Directory inside the container
WORKDIR /go/src/github.com/cloud-barista/cm-beetle
Expand Down
2 changes: 1 addition & 1 deletion deployments/docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ services:
# - BEETLE_AUTOCONTROL_DURATION_MS=10000
- BEETLE_SELF_ENDPOINT=localhost:8056
healthcheck: # for CM-Beetle
test: [ "CMD", "curl", "-f", "http://localhost:1323/beetle/readyz" ]
test: [ "CMD", "curl", "-f", "http://localhost:8056/beetle/readyz" ]
interval: 1m
timeout: 5s
retries: 3
Expand Down