summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorgrg121 <navarromoralesdev@gmail.com>2020-10-10 21:43:11 +0200
committergrg121 <navarromoralesdev@gmail.com>2020-10-10 21:43:11 +0200
commit457ab84065416e3d9c0ff7dc4ea7f8902fb09eb6 (patch)
tree1f7cfd38c2d84422a0320d13440b4276112d5318 /tests
parent3bcb5452aa91e527d04cbfc33f81395618db4959 (diff)
Add basic Dockerfile syntax highlighting test files
Diffstat (limited to 'tests')
-rw-r--r--tests/syntax-tests/highlighted/Dockerfile/Dockerfile19
-rw-r--r--tests/syntax-tests/source/Dockerfile/Dockerfile19
2 files changed, 38 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/Dockerfile/Dockerfile b/tests/syntax-tests/highlighted/Dockerfile/Dockerfile
new file mode 100644
index 00000000..fcbe51c1
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Dockerfile/Dockerfile
@@ -0,0 +1,19 @@
+ARG architecture=amd64
+FROM $architecture/centos:7
+LABEL com.example.version="0.2.1-beta"
+ARG architecture
+
+ENV INTERESTING_PATH /usr/bin/interesting-software
+
+
+COPY entrypoint.sh /usr/bin/entrypoint.sh
+
+RUN if [ "$architecture" = "i386" ]; then echo "Building i386 docker image" && \
+ linux32 yum update -y && linux32 yum install -y mysql ; \
+ else yum update -y && yum install -y mysql
+
+EXPOSE 80/tcp
+
+VOLUME [/var/lib/mysql/data]
+
+ENTRYPOINT ["/usr/bin/entrypoint.sh"]
diff --git a/tests/syntax-tests/source/Dockerfile/Dockerfile b/tests/syntax-tests/source/Dockerfile/Dockerfile
new file mode 100644
index 00000000..54a3b2c8
--- /dev/null
+++ b/tests/syntax-tests/source/Dockerfile/Dockerfile
@@ -0,0 +1,19 @@
+ARG architecture=amd64
+FROM $architecture/centos:7
+LABEL com.example.version="0.2.1-beta"
+ARG architecture
+
+ENV INTERESTING_PATH /usr/bin/interesting-software
+
+
+COPY entrypoint.sh /usr/bin/entrypoint.sh
+
+RUN if [ "$architecture" = "i386" ]; then echo "Building i386 docker image" && \
+ linux32 yum update -y && linux32 yum install -y mysql ; \
+ else yum update -y && yum install -y mysql
+
+EXPOSE 80/tcp
+
+VOLUME [/var/lib/mysql/data]
+
+ENTRYPOINT ["/usr/bin/entrypoint.sh"] \ No newline at end of file