-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
69 lines (56 loc) · 1.89 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM debian:jessie
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
ENV AZURE_CLI_VERSION "0.10.17"
ENV NODEJS_APT_ROOT "node_6.x"
ENV NODEJS_VERSION "6.11.3"
EXPOSE 8001
LABEL name=kubernetes-hyperledger-az-manager version=dev \
maintainer="Marcos Rachid <marcosrachid@gmail.com>"
RUN apt-get update -qq && \
apt-get install -qqy --no-install-recommends \
apt-transport-https \
build-essential \
curl \
ca-certificates \
apt-transport-https \
gettext-base \
git \
lsb-release \
gnupg \
gnupg2 \
python-all \
rlwrap \
vim \
nano \
jq \
software-properties-common
# repo azure-cli
RUN curl -sL https://packages.microsoft.com/keys/microsoft.asc | \
gpg --dearmor | \
tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null && \
AZ_REPO=$(lsb_release -cs) && echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
tee /etc/apt/sources.list.d/azure-cli.list
# docker repo
RUN curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; apt-key add /tmp/dkey && \
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable"
# docker and az
RUN apt-get update -qq && \
apt-get install -qqy --no-install-recommends \
docker-ce \
azure-cli
# kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl
# helm
RUN curl -L https://git.io/get_helm.sh | bash
# cryptogen binaries
VOLUME /opt/fabric/bin
# GO
VOLUME /opt/goroot
VOLUME /opt/gopath
ENV PATH /opt/fabric/bin:/opt/goroot/bin:/opt/gopath/bin:$PATH
ENV EDITOR vim