Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test swagger generator to 2.4.8 (#1058)
* generate files with swagger-codegen 2.4.8 * swagger-codegen 2.4.8 is now the base requirement - had to update the makefile as the generated file names have all moved around a little bit - moved bazel forward to use go 1.13.1 as well - test that was using a deep reflect to do equality has changed to be per struct field equality (deep reflect no longer works with the enum types). * remove need for env var * adds -e plus refactors tools to top * Update .circleci/Dockerfile Co-Authored-By: Johan Brandhorst <johan.brandhorst@gmail.com>
- Loading branch information
1 parent
28a1cae
commit c677e41
Showing
87 changed files
with
10,880 additions
and
4,895 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 |
---|---|---|
@@ -1,32 +1,35 @@ | ||
FROM golang:1.13.1 | ||
|
||
## Warm apt cache | ||
RUN apt-get update | ||
# Warm apt cache | ||
RUN apt-get update && \ | ||
apt-get install -y wget unzip \ | ||
openjdk-11-jre \ | ||
bzip2 | ||
|
||
# Install swagger-codegen | ||
ENV SWAGGER_CODEGEN_VERSION=2.2.2 | ||
RUN apt-get install -y openjdk-11-jre wget && \ | ||
wget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/${SWAGGER_CODEGEN_VERSION}/swagger-codegen-cli-${SWAGGER_CODEGEN_VERSION}.jar \ | ||
-O /usr/local/bin/swagger-codegen-cli.jar && \ | ||
apt-get remove -y wget | ||
ENV SWAGGER_CODEGEN="java -jar /usr/local/bin/swagger-codegen-cli.jar" | ||
ENV SWAGGER_CODEGEN_VERSION=2.4.8 | ||
RUN wget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/${SWAGGER_CODEGEN_VERSION}/swagger-codegen-cli-${SWAGGER_CODEGEN_VERSION}.jar \ | ||
-O /usr/local/bin/swagger-codegen-cli.jar | ||
|
||
# Wrap the jar for swagger-codgen | ||
RUN echo -e '#!/bin/bash\njava -jar /usr/local/bin/swagger-codegen-cli.jar "$@"' > /usr/local/bin/swagger-codegen && \ | ||
chmod +x /usr/local/bin/swagger-codegen | ||
|
||
# Install protoc | ||
ENV PROTOC_VERSION=3.9.2 | ||
RUN apt-get install -y wget unzip && \ | ||
wget https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip \ | ||
RUN wget https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip \ | ||
-O /protoc-${PROTOC_VERSION}-linux-x86_64.zip && \ | ||
unzip /protoc-${PROTOC_VERSION}-linux-x86_64.zip -d /usr/local/ && \ | ||
rm -f /protoc-${PROTOC_VERSION}-linux-x86_64.zip && \ | ||
apt-get remove -y unzip wget | ||
rm -f /protoc-${PROTOC_VERSION}-linux-x86_64.zip | ||
|
||
# Install node, used by NVM | ||
ENV NODE_VERSION=v10.16.3 | ||
ENV NVM_VERSION=v0.35.0 | ||
RUN apt-get install -y wget bzip2 && \ | ||
wget -qO- https://raw.githubusercontent.com/creationix/nvm/${NVM_VERSION}/install.sh | bash && \ | ||
apt-get remove -y wget | ||
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/${NVM_VERSION}/install.sh | bash | ||
|
||
# Clean up | ||
RUN apt-get autoremove -y && \ | ||
apt-get remove -y wget \ | ||
unzip \ | ||
bzip2 && \ | ||
rm -rf /var/lib/apt/lists/* |
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
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 @@ | ||
2.4.8 |
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.