Skip to content

Commit b983fa5

Browse files
committed
update dockerfile for launchql and makefile
1 parent 61d70da commit b983fa5

2 files changed

Lines changed: 6 additions & 21 deletions

File tree

docker/Makefile

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,7 @@ build-process-version:
5454
@test -n "$(BASE)" || { echo "Error: BASE is required"; exit 1; }
5555
@test -n "$(VERSION)" || { echo "Error: VERSION is required"; exit 1; }
5656
@echo " -> $(BASE):$(VERSION) => $(REPO_NAME)/$(PROCESS):$(VERSION) (build)"
57-
@DOCKERFILE_PATH=$$( \
58-
if [ "$(PROCESS)" = "postgis" ]; then \
59-
case "$(VERSION)" in \
60-
13.*) echo "$(PROCESS)/Dockerfile.legacy" ;; \
61-
*) echo "$(PROCESS)/Dockerfile" ;; \
62-
esac; \
63-
else \
64-
echo "$(PROCESS)/Dockerfile"; \
65-
fi ); \
57+
@DOCKERFILE_PATH="$(PROCESS)/Dockerfile"; \
6658
CONTEXT=$$( \
6759
if [ "$(PROCESS)" = "launchql" ]; then \
6860
echo ".."; \
@@ -83,15 +75,7 @@ build-push-process-version:
8375
@test -n "$(BASE)" || { echo "Error: BASE is required"; exit 1; }
8476
@test -n "$(VERSION)" || { echo "Error: VERSION is required"; exit 1; }
8577
@echo " -> $(BASE):$(VERSION) => $(REPO_NAME)/$(PROCESS):$(VERSION) (push)"
86-
@DOCKERFILE_PATH=$$( \
87-
if [ "$(PROCESS)" = "postgis" ]; then \
88-
case "$(VERSION)" in \
89-
13.*) echo "$(PROCESS)/Dockerfile.legacy" ;; \
90-
*) echo "$(PROCESS)/Dockerfile" ;; \
91-
esac; \
92-
else \
93-
echo "$(PROCESS)/Dockerfile"; \
94-
fi ); \
78+
@DOCKERFILE_PATH="$(PROCESS)/Dockerfile"; \
9579
CONTEXT=$$( \
9680
if [ "$(PROCESS)" = "launchql" ]; then \
9781
echo ".."; \

docker/launchql/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ RUN set -eux; \
1515
apt-get install -y --no-install-recommends \
1616
ca-certificates curl git python3 make g++; \
1717
update-ca-certificates || true; \
18-
npm i -g yarn@1; \
18+
corepack enable; \
19+
corepack prepare yarn@1.22.22 --activate; \
1920
rm -rf /var/lib/apt/lists/*
2021

2122
# Copy full repo (build context must be repo root when building this image)
@@ -37,7 +38,8 @@ RUN set -eux; \
3738
apt-get update; \
3839
apt-get install -y --no-install-recommends ca-certificates postgresql-client; \
3940
update-ca-certificates || true; \
40-
npm i -g yarn@1; \
41+
corepack enable; \
42+
corepack prepare yarn@1.22.22 --activate; \
4143
rm -rf /var/lib/apt/lists/*
4244

4345
# Copy built repo from builder
@@ -52,4 +54,3 @@ RUN set -eux; \
5254

5355
ENTRYPOINT ["/usr/local/bin/lql"]
5456
CMD ["--help"]
55-

0 commit comments

Comments
 (0)