-
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.
Support running DistSQL under Proxy Native in the form of GraalVM Nat…
…ive Image
- Loading branch information
1 parent
8e104c0
commit b275e91
Showing
18 changed files
with
1,817 additions
and
1,948 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
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,19 +14,9 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
FROM alpine AS prepare | ||
|
||
ARG APP_NAME | ||
ENV LOCAL_PATH /opt/shardingsphere-proxy-native | ||
|
||
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 | ||
|
||
COPY --from=prepare ${LOCAL_PATH} ${LOCAL_PATH} | ||
ENTRYPOINT ${LOCAL_PATH}/${NATIVE_IMAGE_NAME} 3307 ${LOCAL_PATH}/conf "0.0.0.0" false | ||
LABEL org.opencontainers.image.authors="ShardingSphere [email protected]" | ||
ENV LOCAL_PATH=/opt/shardingsphere-proxy-native-bin | ||
ARG OUTPUT_DIRECTORY_NAME | ||
COPY target/${OUTPUT_DIRECTORY_NAME} ${LOCAL_PATH} | ||
ENTRYPOINT ["${LOCAL_PATH}/proxy-native", "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
Oops, something went wrong.