on master help sign in
Merge pull request #1305 from grg121/1213-dockerfile-syntax-highlighting-test
acc370dEthan P
tests/syntax-tests/highlighted/Dockerfile/Dockerfilenew file+19
@@ -0,0 +1,19 @@
1+ARG architecture=amd64
2+FROM $architecture/centos:7
3+LABEL com.example.version="0.2.1-beta"
4+ARG architecture
5+
6+ENV INTERESTING_PATH /usr/bin/interesting-software
7+
8+
9+COPY entrypoint.sh /usr/bin/entrypoint.sh
10+
11+RUN if [ "$architecture" = "i386" ]; then echo "Building i386 docker image" && \
12+ linux32 yum update -y && linux32 yum install -y mysql ; \
13+ else yum update -y && yum install -y mysql
14+
15+EXPOSE 80/tcp
16+
17+VOLUME [/var/lib/mysql/data]
18+
19+ENTRYPOINT ["/usr/bin/entrypoint.sh"]
tests/syntax-tests/source/Dockerfile/Dockerfilenew file+19
@@ -0,0 +1,19 @@
1+ARG architecture=amd64
2+FROM $architecture/centos:7
3+LABEL com.example.version="0.2.1-beta"
4+ARG architecture
5+
6+ENV INTERESTING_PATH /usr/bin/interesting-software
7+
8+
9+COPY entrypoint.sh /usr/bin/entrypoint.sh
10+
11+RUN if [ "$architecture" = "i386" ]; then echo "Building i386 docker image" && \
12+ linux32 yum update -y && linux32 yum install -y mysql ; \
13+ else yum update -y && yum install -y mysql
14+
15+EXPOSE 80/tcp
16+
17+VOLUME [/var/lib/mysql/data]
18+
19+ENTRYPOINT ["/usr/bin/entrypoint.sh"]