-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #170 from NeowayLabs/addUploader
Add uploader of blobs
- Loading branch information
Showing
25 changed files
with
1,704 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,45 @@ | ||
FROM neowaylabs/klbdeps:0.4 | ||
FROM ubuntu:16.04 | ||
|
||
COPY ./aws ${NASHPATH}/lib/klb/aws | ||
COPY ./azure ${NASHPATH}/lib/klb/azure | ||
RUN apt-get update && \ | ||
apt-get install -y curl && \ | ||
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \ | ||
apt-get install -y nodejs=6.14.1-1nodesource1 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
nodejs libffi-dev openssh-server \ | ||
libffi-dev libssl-dev wget jq python-pip | ||
|
||
RUN pip install -U pip | ||
|
||
RUN pip install azure-cli==2.0.28 && \ | ||
pip install awscli==1.11.107 && \ | ||
npm install --no-optional -g [email protected] | ||
|
||
ENV NASH_VERSION=v0.6 | ||
ENV NASHPATH=/root/nash | ||
ENV NASHROOT=/root/nashroot | ||
ENV PATH=${PATH}:${NASHROOT}/bin | ||
RUN curl https://raw.githubusercontent.com/NeowayLabs/nash/master/hack/install/linux.sh | bash -s ${NASH_VERSION} | ||
|
||
# Go is not required by klb itself on runtime, but having multiple | ||
# Dockerfiles introduced space for bugs involving differences | ||
# between the dev and final prod images. So we decided it was not | ||
# worth to maintain two images. | ||
ENV GO_VERSION="1.10" | ||
ENV GOROOT="/goroot" | ||
ENV PATH=${PATH}:${GOROOT}/bin | ||
|
||
RUN cd /tmp && \ | ||
wget https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz && \ | ||
tar -xf go$GO_VERSION.linux-amd64.tar.gz && \ | ||
mkdir -p $GOROOT && \ | ||
mv ./go/* $GOROOT | ||
|
||
COPY ./tools/azure/createsp.sh ${NASHPATH}/bin/azure-createsp.sh | ||
COPY ./tools/azure/getcredentials.sh ${NASHPATH}/bin/azure-getcredentials.sh | ||
|
||
COPY ./aws ${NASHPATH}/lib/klb/aws | ||
COPY ./azure ${NASHPATH}/lib/klb/azure | ||
|
||
ENV PATH $PATH:${NASHPATH}/bin |
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.