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

Build for tiqets #597

Closed
wants to merge 1 commit into from
Closed
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
19 changes: 19 additions & 0 deletions build-and-push-tiqets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e -u -o pipefail

BASE=129317782449.dkr.ecr.eu-west-1.amazonaws.com
TAG=0.2.15.1

docker buildx build \
--push \
--build-arg VERSION="${TAG}" \
--platform linux/arm64,linux/amd64 \
-t "${BASE}/zookeeper-operator":"${TAG}" \
.

docker buildx build \
--push \
--build-arg VERSION="${TAG}" \
--platform linux/arm64,linux/amd64 \
-t "${BASE}/zookeeper":"${TAG}" \
./docker
5 changes: 1 addition & 4 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
FROM alpine:3.8

RUN apk upgrade --update --no-cache

USER nobody

ADD build/_output/bin/zookeeper-operator /usr/local/bin/zookeeper-operator
COPY build/_output/bin/zookeeper-operator /usr/local/bin/zookeeper-operator
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
#

ARG DOCKER_REGISTRY
FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}openjdk:11-jdk
FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}openjdk:11-jdk
RUN mkdir /zu
COPY zu /zu
WORKDIR /zu
RUN ./gradlew --console=verbose --info shadowJar

FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}zookeeper:3.7.2
FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}zookeeper:3.9.1-jre-11
COPY bin /usr/local/bin
RUN chmod +x /usr/local/bin/*
COPY --from=0 /zu/build/libs/zu.jar /opt/libs/
Expand Down
Loading