This repository has been archived by the owner on Jan 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM openjdk:8 AS build | ||
|
||
ARG CLI_VERSION="0.3.0" | ||
|
||
RUN curl -s https://codeload.github.com/apiman/apiman-cli/zip/release/v${CLI_VERSION} -o /tmp/apiman-cli-release-v${CLI_VERSION}.zip && \ | ||
unzip /tmp/apiman-cli-release-v${CLI_VERSION}.zip -d /tmp && \ | ||
mv /tmp/apiman-cli-release-v${CLI_VERSION} /tmp/apiman-cli && \ | ||
chmod +x /tmp/apiman-cli/gradlew | ||
|
||
WORKDIR /tmp/apiman-cli | ||
RUN ./gradlew shadowJar | ||
|
||
|
||
FROM openjdk:8-jre-alpine | ||
|
||
RUN mkdir -p /opt/apiman-cli/lib | ||
COPY --from=build /tmp/apiman-cli/build/libs/* /opt/apiman-cli/lib/ | ||
|
||
ENTRYPOINT [ "java", "-jar", "/opt/apiman-cli/lib/apiman-cli.jar" ] |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiman cli | ||
========== | ||
|
||
## Usage | ||
|
||
To use apiman CLI | ||
|
||
docker run -it apiman/cli [args] | ||
|
||
For valid arguments, please see the documentation for [apiman CLI](https://github.com/apiman/apiman-cli) | ||
|
||
## Building the image | ||
|
||
docker build -t="apiman/cli" --rm . | ||
|
||
## Image accessible on Docker hub | ||
|
||
This image is automatically built and published into [Docker Hub](https://registry.hub.docker.com/u/apiman/cli/). |