зеркало из https://github.com/Azure/iotedgedev.git
Updated docker images
This commit is contained in:
Родитель
d2d4c2f656
Коммит
603d7de8cc
|
@ -1,29 +0,0 @@
|
|||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
FROM ubuntu:16.04
|
||||
RUN apt-get update
|
||||
|
||||
#curl
|
||||
RUN apt-get install -y curl
|
||||
|
||||
#python/pip
|
||||
RUN apt-get install -y python-pip
|
||||
|
||||
#donet
|
||||
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
|
||||
RUN mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
|
||||
RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
|
||||
RUN apt-get install -y apt-utils
|
||||
RUN apt-get install -y apt-transport-https
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y dotnet-sdk-2.1.3
|
||||
|
||||
#az cli
|
||||
RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" > /etc/apt/sources.list.d/azure-cli.list'
|
||||
RUN apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893
|
||||
RUN apt-get update && apt-get install azure-cli
|
||||
|
||||
#az iot cli
|
||||
RUN az extension add --name azure-cli-iot-ext
|
||||
|
||||
#clean any apt-get cache
|
||||
RUN apt-get clean
|
|
@ -1 +0,0 @@
|
|||
docker build -t jongallant/iotedgedev:0.0.1-deps-ubuntu .
|
|
@ -1,2 +0,0 @@
|
|||
docker login
|
||||
docker push jongallant/iotedgedev:0.0.1-deps-ubuntu
|
|
@ -1 +0,0 @@
|
|||
docker run -ti jongallant/iotedgedev:0.0.1-deps-ubuntu
|
|
@ -0,0 +1,13 @@
|
|||
Run these in Git Bash on Windows. I couldn't get any other method to work.
|
||||
|
||||
## To Build Images
|
||||
./build.sh 0.0.x
|
||||
|
||||
## To Run
|
||||
./run.sh 0.0.X
|
||||
|
||||
## To Run Only Dependencies Container
|
||||
./run-deps 0.0.x
|
||||
|
||||
## To Push
|
||||
./push.sh 0.0.x
|
|
@ -0,0 +1,2 @@
|
|||
FROM jongallant/iotedgedev:${VERSION}-deps-linux
|
||||
RUN pip install azure-iot-edge-dev-tool
|
|
@ -0,0 +1,18 @@
|
|||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
FROM ubuntu:16.04
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends curl apt-transport-https python-pip libltdl-dev apt-utils docker.io && \
|
||||
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
|
||||
apt-get install -y nodejs && \
|
||||
curl -O https://bootstrap.pypa.io/get-pip.py && python get-pip.py && \
|
||||
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg && \
|
||||
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg && \
|
||||
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list' && \
|
||||
apt-get update && \
|
||||
apt-get install -y dotnet-sdk-2.1.3 && \
|
||||
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" > /etc/apt/sources.list.d/azure-cli.list' && \
|
||||
apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 && \
|
||||
apt-get update && apt-get install azure-cli && \
|
||||
az extension add --name azure-cli-iot-ext && \
|
||||
npm i -g iothub-explorer && \
|
||||
rm -rf /var/lib/apt/lists/*
|
|
@ -0,0 +1,2 @@
|
|||
FROM jongallant/iotedgedev:0.0.12-deps-linux
|
||||
RUN pip install azure-iot-edge-dev-tool
|
|
@ -0,0 +1,4 @@
|
|||
export VERSION=$1
|
||||
docker build -f Dockerfile.deps -t jongallant/iotedgedev:$1-deps-linux -t jongallant/iotedgedev:latest-deps-linux .
|
||||
cat Dockerfile | envsubst > Dockerfile.expanded
|
||||
docker build -f Dockerfile.expanded -t jongallant/iotedgedev:$1-linux -t jongallant/iotedgedev:latest-linux .
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
winpty docker login
|
||||
docker push jongallant/iotedgedev:$1-deps-linux
|
||||
docker push jongallant/iotedgedev:latest-deps-linux
|
||||
docker push jongallant/iotedgedev:$1-linux
|
||||
docker push jongallant/iotedgedev:latest-linux
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
docker run -it -v /var/run/docker.sock:/var/run/docker.sock jongallant/iotedgedev:$1-deps-linux
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
docker run -it -v /var/run/docker.sock:/var/run/docker.sock jongallant/iotedgedev:$1-deps-linux
|
|
@ -1,2 +1 @@
|
|||
curl -O https://bootstrap.pypa.io/get-pip.py
|
||||
python get-pip.py
|
||||
curl -O https://bootstrap.pypa.io/get-pip.py && python get-pip.py
|
||||
|
|
Загрузка…
Ссылка в новой задаче