Skip to content

Commit

Permalink
[#noissue] add version change in flink
Browse files Browse the repository at this point in the history
  • Loading branch information
RoySRose committed Mar 25, 2021
1 parent 23a3a8a commit c8a0edf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
8 changes: 7 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ services:
build:
context: pinpoint-flink
dockerfile: Dockerfile
args:
- PINPOINT_VERSION=${PINPOINT_VERSION}

container_name: "${PINPOINT_FLINK_NAME}-jobmanager"
image: "pinpointdocker/pinpoint-flink:${PINPOINT_VERSION}"
expose:
Expand All @@ -271,8 +274,11 @@ services:
build:
context: pinpoint-flink
dockerfile: Dockerfile
args:
- PINPOINT_VERSION=${PINPOINT_VERSION}

container_name: "${PINPOINT_FLINK_NAME}-taskmanager"
image: ${PINPOINT_FLINK_NAME}-flink:dev
image: "pinpointdocker/pinpoint-flink:${PINPOINT_VERSION}"
expose:
- "6121"
- "6122"
Expand Down
13 changes: 9 additions & 4 deletions pinpoint-flink/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
FROM flink:1.7
ARG PINPOINT_VERSION=2.2.0
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.2.2}
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-flink-job-${PINPOINT_VERSION}.jar

RUN apt-get update \
&& apt-get install --no-install-recommends -y zip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ADD https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-flink-job-${PINPOINT_VERSION}.jar /build/
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /build \
&& curl -SL ${INSTALL_URL} -o /build/pinpoint-flink-job.jar

COPY build/ /build/
COPY docker-bin/ /docker-bin/
ENTRYPOINT ["/docker-bin/docker-entrypoint.sh"]
ENTRYPOINT ["/docker-bin/docker-entrypoint.sh"]

6 changes: 3 additions & 3 deletions pinpoint-flink/docker-bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
# In flink version < 1.11 we can't use "job cluster" because it's not yet available
if [ "$1" = "standalone-job" ]; then
cd /build
zip -d pinpoint-flink-job-*.jar "profiles/release/*.properties"
zip -d pinpoint-flink-job.jar "profiles/release/*.properties"
sed -i -e "s/#PINPOINT_ZOOKEEPER_ADDRESS#/${PINPOINT_ZOOKEEPER_ADDRESS}/g" profiles/release/*
zip -r pinpoint-flink-job-*.jar profiles/
zip -r pinpoint-flink-job.jar profiles/
cd -

mv /build/pinpoint-flink-job-*.jar pinpoint-flink-job.jar
mv /build/pinpoint-flink-job.jar pinpoint-flink-job.jar

shift

Expand Down

0 comments on commit c8a0edf

Please sign in to comment.