From 87df81bb1dc51ce85aae1e205221cdb1a4aa2956 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Thu, 25 Jan 2018 21:59:26 -0800 Subject: [PATCH] Move some things for better diff. (#44) --- openapi/Dockerfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/openapi/Dockerfile b/openapi/Dockerfile index 91112ff..72ed112 100644 --- a/openapi/Dockerfile +++ b/openapi/Dockerfile @@ -20,6 +20,16 @@ ARG SWAGGER_CODEGEN_USER_ORG=swagger-api # Install preprocessing script requirements RUN apt-get update && apt-get -y install git python-pip && pip install urllib3 +# Install Autorest +RUN apt-get update && apt-get -qq -y install libunwind8 libicu57 libssl1.0 liblttng-ust0 libcurl3 libuuid1 libkrb5-3 zlib1g +RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - +RUN apt-get update && apt-get -y install \ + nodejs \ + libunwind8-dev \ + && rm -rf /var/lib/apt/lists/* + +RUN npm install -g autorest@preview #TODO-krabhishek8260: Remove preview as soon as the required bits are in release version + # Check out specific commit of swagger-codegen RUN mkdir /source && \ cd /source && \ @@ -32,16 +42,6 @@ RUN cd /source/swagger-codegen && \ mvn install -DskipTests -Dmaven.test.skip=true -pl modules/swagger-codegen-maven-plugin -am && \ cp -r /root/.m2/* /usr/share/maven/ref -# Install Autorest -RUN apt-get update && apt-get -qq -y install libunwind8 libicu57 libssl1.0 liblttng-ust0 libcurl3 libuuid1 libkrb5-3 zlib1g -RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - -RUN apt-get update && apt-get -y install \ - nodejs \ - libunwind8-dev \ - && rm -rf /var/lib/apt/lists/* - -RUN npm install -g autorest@preview #TODO-krabhishek8260: Remove preview as soon as the required bits are in release version - # Copy required files COPY generate_client_in_container.sh /generate_client.sh COPY preprocess_spec.py /