Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1b28bf1

Browse files
committed
chore: build Docker images for Enterprise Edition
1 parent 2cd3220 commit 1b28bf1

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

‎.gitlab-ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ build-binary:
3333
- bin
3434
script:
3535
- make build
36+
- make build-ee
3637

3738
.job_template: &build_image_definition
3839
image: docker:19
@@ -103,6 +104,17 @@ build-image-latest-dev-registry:
103104
DOCKER_NAME: "registry.gitlab.com/postgres-ai/joe"
104105
TAGS: "${DOCKER_NAME}:${CI_COMMIT_TAG}"
105106

107+
build-image-release-dev-registry-ee:
108+
<<: *build_image_definition
109+
<<: *only_tag_release
110+
variables:
111+
REGISTRY_USER: "${CI_REGISTRY_USER}"
112+
REGISTRY_PASSWORD: "${CI_REGISTRY_PASSWORD}"
113+
REGISTRY: "${CI_REGISTRY}"
114+
DOCKER_NAME: "registry.gitlab.com/postgres-ai/joe"
115+
DOCKER_FILE: "Dockerfile.ee"
116+
TAGS: "${DOCKER_NAME}:${CI_COMMIT_TAG}-ee"
117+
106118
build-image-rc:
107119
<<: *build_image_definition
108120
<<: *only_tag_rc
@@ -122,3 +134,14 @@ build-image-rc-dev-registry:
122134
REGISTRY: "${CI_REGISTRY}"
123135
DOCKER_NAME: "registry.gitlab.com/postgres-ai/joe"
124136
TAGS: "${DOCKER_NAME}:${CI_COMMIT_TAG}"
137+
138+
build-image-rc-dev-registry-ee:
139+
<<: *build_image_definition
140+
<<: *only_tag_rc
141+
variables:
142+
REGISTRY_USER: "${CI_REGISTRY_USER}"
143+
REGISTRY_PASSWORD: "${CI_REGISTRY_PASSWORD}"
144+
REGISTRY: "${CI_REGISTRY}"
145+
DOCKER_NAME: "registry.gitlab.com/postgres-ai/joe"
146+
DOCKER_FILE: "Dockerfile.ee"
147+
TAGS: "${DOCKER_NAME}:${CI_COMMIT_TAG}-ee"

‎Dockerfile.ee

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM alpine:3.15
2+
3+
RUN apk add --no-cache bash postgresql-client
4+
5+
WORKDIR /home/
6+
7+
COPY ./bin/joe-ee ./bin/joe
8+
COPY ./configs/explain ./explain
9+
10+
EXPOSE $SERVER_PORT
11+
12+
CMD ["./bin/joe"]

‎Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ build:
4141
${GOBUILD} -o bin/${BINARY} ./cmd/joe/main.go
4242

4343
build-ee:
44-
${GOBUILD} -tags ee -o bin/${BINARY} ./cmd/joe/main.go
44+
${GOBUILD} -tags ee -o bin/${BINARY}-ee ./cmd/joe/main.go
4545

4646
test:
4747
go test ./pkg/...

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /