-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nightly builds of ShardingSphere Proxy Native
- Loading branch information
1 parent
88d04ad
commit f4af1c0
Showing
12 changed files
with
144 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,23 +14,26 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
FROM alpine AS prepare | ||
|
||
FROM busybox AS prepare | ||
ARG APP_NAME | ||
ENV LOCAL_PATH /opt/shardingsphere-proxy-native | ||
|
||
RUN mkdir -p /conf/ | ||
ADD target/${APP_NAME}.tar.gz /opt | ||
RUN mv /opt/${APP_NAME} ${LOCAL_PATH} | ||
|
||
FROM oraclelinux:9-slim | ||
|
||
MAINTAINER ShardingSphere "[email protected]" | ||
|
||
ARG NATIVE_IMAGE_NAME | ||
ENV LOCAL_PATH /opt/shardingsphere-proxy-native | ||
ENV JAVA_HOME "/opt/graalvm-ce-java17-22.3.1" | ||
ENV PATH "$JAVA_HOME/bin:$PATH" | ||
|
||
bash <(curl -sL https://get.graalvm.org/jdk) -c espresso graalvm-ce-java17-22.3.1 | ||
|
||
COPY --from=prepare /conf/ ${LOCAL_PATH}/conf | ||
|
||
ARG APP_NAME | ||
|
||
ADD target/${APP_NAME} ${LOCAL_PATH}/ | ||
RUN microdnf install gzip -y && \ | ||
bash <(curl -sL https://get.graalvm.org/jdk) --to "/opt" -c espresso graalvm-ce-java17-22.3.1 && \ | ||
$JAVA_HOME/bin/gu remove native-image && \ | ||
microdnf clean all | ||
|
||
ENTRYPOINT ${LOCAL_PATH}/${APP_NAME} 3307 ${LOCAL_PATH}/conf | ||
COPY --from=prepare ${LOCAL_PATH} ${LOCAL_PATH} | ||
ENTRYPOINT ${LOCAL_PATH}/${NATIVE_IMAGE_NAME} 3307 ${LOCAL_PATH}/conf "0.0.0.0" false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.