Skip to content

Commit

Permalink
moved test data
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmanzo committed Feb 2, 2023
1 parent a8a17eb commit 4232846
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ htmldocs/
# ignore any binaries but include test source code
tests/*
!tests/*.nim*

!tests/data

2 changes: 2 additions & 0 deletions tests/data/Containerfile.basic
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM opensuse/leap
CMD echo Hello
2 changes: 2 additions & 0 deletions tests/data/Containerfile.hello
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM opensuse/leap
CMD echo Hello
11 changes: 11 additions & 0 deletions tests/data/Containerfile.python
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.8
# set a directory for the app
WORKDIR /usr/src/app
# copy all the files to the container
COPY . .
# install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# define the port number the container should expose
EXPOSE 5000
# run the command
CMD ["python", "./app.py"]
6 changes: 6 additions & 0 deletions tests/data/Containerfile.redundant
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM debian:latest
WORKDIR /app
RUN git clone https://some.project.git
RUN cd project
RUN make
RUN mv ./binary /usr/bin/
5 changes: 5 additions & 0 deletions tests/data/Containerfile.unoptimized.nodejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:16
COPY . .
RUN npm install
EXPOSE 3000
CMD ["node","index.js"]
4 changes: 4 additions & 0 deletions tests/data/Containerfile.with_comments
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# this is a simple containerfile
FROM opensuse/leap
# with comments added
CMD ["echo","Hello"]
5 changes: 5 additions & 0 deletions tests/data/Containerfile.withenv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM busybox
ENV FOO=/bar
WORKDIR ${FOO}
ADD . $FOO
COPY $FOO /quux

0 comments on commit 4232846

Please sign in to comment.