forked from leaf-ai/studio-go-runner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile_workstation
62 lines (48 loc) · 2.32 KB
/
Dockerfile_workstation
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
# Copyright 2018-2021 (c) Cognizant Digital Business, Evolutionary AI. All rights reserved. Issued under the Apache 2.0 License.
#
FROM leafai/studio-go-runner-dev-stack:0.0.3
MAINTAINER [email protected]
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV GO_VERSION 1.16.6
RUN \
mkdir -p /project/go && \
mkdir -p /project/src/github.com/leaf-ai && \
cd /project && \
wget -q -O /tmp/go.tgz https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz && \
tar xzf /tmp/go.tgz && \
rm /tmp/go.tgz
RUN mkdir -p /project/.local/bin && \
wget -q -O /project/.local/bin/minio https://dl.minio.io/server/minio/release/linux-amd64/minio && \
chmod +x /project/.local/bin/minio
# Install RabbitMQ, originally from https://github.com/dockerfile/rabbitmq/blob/master/Dockerfile
#
# In many configurations used for testing this server wont actually be used but is present
# for situations where kubernetes and rabbitMQ deployments are not available
#
RUN wget -q -O - 'https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc' | apt-key add - && \
echo "deb https://dl.bintray.com/rabbitmq/debian bionic main erlang" | tee /etc/apt/sources.list.d/bintray.rabbitmq.list && \
apt-get -y --allow-unauthenticated update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated rabbitmq-server && \
rabbitmq-plugins enable rabbitmq_management && \
echo "[{rabbit, [{loopback_users, []}]}]." > /etc/rabbitmq/rabbitmq.config && \
mkdir -p /data
ENV RABBITMQ_LOG_BASE /data/log
ENV RABBITMQ_MNESIA_BASE /data/mnesia
ENV GOPATH=/project
ENV PATH=$GOPATH/bin:$PATH
ENV PATH=$PATH:/project/.local/bin:/project/go/bin
ENV GOROOT=/project/go
ARG RUNNER_BUILD_LOG
ENV RUNNER_BUILD_LOG ${RUNNER_BUILD_LOG}
ENV LOGXI='*=INF'
ENV LOGXI_FORMAT='happy,maxcol=1024'
WORKDIR /project/src/github.com/leaf-ai
RUN \
git config --global url."git://github.com".insteadOf "https://github.com" && \
rm /usr/bin/nvidia-*
CMD /bin/bash -c 'git clone https://github.com/leaf-ai/studio-go-runner.git && cd studio-go-runner && git checkout $GIT_BRANCH && source ./base-build.sh'
# Done last to prevent lots of disruption when bumping versions
LABEL vendor="Cognizant, AI&A" \
dev.cognizant-ai.module.version={{.duat.version}} \
dev.cognizant-ai.module.name={{.duat.module}}