Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 0ed4d55

Browse files
committed
Adds make commands to build and publish docker images
1 parent 27cbe43 commit 0ed4d55

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM maven:3.6.3-jdk-11-openj9
22

3-
ENV GEN_DIR /opt/openapi-generator
3+
ENV GEN_DIR /opt/openapi-json-schema-generator
44
WORKDIR ${GEN_DIR}
55
VOLUME ${MAVEN_HOME}/.m2/repository
66

@@ -11,20 +11,20 @@ COPY ./LICENSE ${GEN_DIR}
1111
COPY ./google_checkstyle.xml ${GEN_DIR}
1212

1313
# Modules are copied individually here to allow for caching of docker layers between major.minor versions
14-
COPY ./modules/openapi-generator-gradle-plugin ${GEN_DIR}/modules/openapi-generator-gradle-plugin
15-
COPY ./modules/openapi-generator-maven-plugin ${GEN_DIR}/modules/openapi-generator-maven-plugin
16-
COPY ./modules/openapi-generator-online ${GEN_DIR}/modules/openapi-generator-online
17-
COPY ./modules/openapi-generator-cli ${GEN_DIR}/modules/openapi-generator-cli
18-
COPY ./modules/openapi-generator-core ${GEN_DIR}/modules/openapi-generator-core
19-
COPY ./modules/openapi-generator ${GEN_DIR}/modules/openapi-generator
14+
COPY ./modules/openapi-json-schema-generator-gradle-plugin ${GEN_DIR}/modules/openapi-json-schema-generator-gradle-plugin
15+
COPY ./modules/openapi-json-schema-generator-maven-plugin ${GEN_DIR}/modules/openapi-json-schema-generator-maven-plugin
16+
COPY ./modules/openapi-json-schema-generator-online ${GEN_DIR}/modules/openapi-json-schema-generator-online
17+
COPY ./modules/openapi-json-schema-generator-cli ${GEN_DIR}/modules/openapi-json-schema-generator-cli
18+
COPY ./modules/openapi-json-schema-generator-core ${GEN_DIR}/modules/openapi-json-schema-generator-core
19+
COPY ./modules/openapi-json-schema-generator ${GEN_DIR}/modules/openapi-json-schema-generator
2020
COPY ./pom.xml ${GEN_DIR}
2121

2222
# Pre-compile openapi-generator-cli
23-
RUN mvn -am -pl "modules/openapi-generator-cli" package
23+
RUN mvn -am -pl "modules/openapi-json-schema-generator-cli" package
2424

2525
# This exists at the end of the file to benefit from cached layers when modifying docker-entrypoint.sh.
2626
COPY docker-entrypoint.sh /usr/local/bin/
27-
RUN ln -s /usr/local/bin/docker-entrypoint.sh /usr/local/bin/openapi-generator
27+
RUN ln -s /usr/local/bin/docker-entrypoint.sh /usr/local/bin/openapi-json-schema-generator
2828

2929
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
3030

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.PHONY: docker_build
2+
3+
docker_build:
4+
docker build -t spacether/openapi-json-schema-generator-cli_test:latest .
5+
6+
docker_publish:
7+
docker push spacether/openapi-json-schema-generator-cli_test:latest

0 commit comments

Comments
 (0)