-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
63 lines (51 loc) · 1.58 KB
/
Dockerfile
File metadata and controls
63 lines (51 loc) · 1.58 KB
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
FROM ubuntu:16.04
MAINTAINER Bitbucket Pipelines
# Install base dependencies
RUN apt-get update \
&& apt-get install -y \
software-properties-common \
build-essential \
cmake \
libboost-all-dev \
wget \
xvfb \
curl \
git \
mercurial \
maven \
openjdk-8-jdk \
ant \
ssh-client \
unzip \
iputils-ping \
&& rm -rf /var/lib/apt/lists/*
# Install nvm with node and npm
ENV NODE_VERSION=8.9.4 \
NVM_DIR=/root/.nvm \
NVM_VERSION=0.33.8
RUN curl https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
# Set node path
ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# Default to UTF-8 file.encoding
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
LANGUAGE=C.UTF-8
# Xvfb provide an in-memory X-session for tests that require a GUI
ENV DISPLAY=:99
# Set the path.
ENV PATH=$NVM_DIR:$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
# Create dirs and users
RUN mkdir -p /opt/atlassian/bitbucketci/agent/build \
&& sed -i '/[ -z \"PS1\" ] && return/a\\ncase $- in\n*i*) ;;\n*) return;;\nesac' /root/.bashrc \
&& useradd --create-home --shell /bin/bash --uid 1000 pipelines
WORKDIR /opt/atlassian/bitbucketci/agent/build
#RUN git clone git clone https://mhe-gt@bitbucket.org/chemometec/demo.git ./source
#RUN cmake ./source
#RUN make
#RUN make test
ENTRYPOINT /bin/bash