-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #621 from srvrco/bash4
Add tests for bash 4.0, 4.2, 5.0
- Loading branch information
Showing
7 changed files
with
130 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM bash:4.0 | ||
|
||
# https://hub.docker.com/_/bash | ||
|
||
RUN apk --no-cache add supervisor openssl git curl bind-tools drill wget nginx bash | ||
|
||
WORKDIR /root | ||
|
||
# Create nginx directories in standard places | ||
RUN mkdir /run/nginx | ||
RUN mkdir /etc/nginx/pki | ||
RUN mkdir /etc/nginx/pki/private | ||
|
||
# BATS (Bash Automated Testings) | ||
RUN git clone https://github.com/bats-core/bats-core.git /bats-core --branch v1.2.1 | ||
RUN git clone https://github.com/bats-core/bats-support /bats-support | ||
RUN git clone https://github.com/bats-core/bats-assert /bats-assert | ||
RUN /bats-core/install.sh /usr/local | ||
|
||
# Use supervisord to run nginx in the background | ||
COPY ./test/test-config/alpine-supervisord.conf /etc/supervisord.conf | ||
CMD tail -f /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM bash:4.2 | ||
|
||
# https://hub.docker.com/_/bash | ||
|
||
RUN apk --no-cache add supervisor openssl git curl bind-tools drill wget nginx bash | ||
|
||
WORKDIR /root | ||
|
||
# Create nginx directories in standard places | ||
RUN mkdir /run/nginx | ||
RUN mkdir /etc/nginx/pki | ||
RUN mkdir /etc/nginx/pki/private | ||
|
||
# BATS (Bash Automated Testings) | ||
RUN git clone https://github.com/bats-core/bats-core.git /bats-core --branch v1.2.1 | ||
RUN git clone https://github.com/bats-core/bats-support /bats-support | ||
RUN git clone https://github.com/bats-core/bats-assert /bats-assert | ||
RUN /bats-core/install.sh /usr/local | ||
|
||
# Use supervisord to run nginx in the background | ||
COPY ./test/test-config/alpine-supervisord.conf /etc/supervisord.conf | ||
CMD tail -f /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM bash:5.0 | ||
|
||
# https://hub.docker.com/_/bash | ||
|
||
RUN apk --no-cache add supervisor openssl git curl bind-tools drill wget nginx bash | ||
|
||
WORKDIR /root | ||
|
||
# Create nginx directories in standard places | ||
RUN mkdir /run/nginx | ||
RUN mkdir /etc/nginx/pki | ||
RUN mkdir /etc/nginx/pki/private | ||
|
||
# BATS (Bash Automated Testings) | ||
RUN git clone https://github.com/bats-core/bats-core.git /bats-core --branch v1.2.1 | ||
RUN git clone https://github.com/bats-core/bats-support /bats-support | ||
RUN git clone https://github.com/bats-core/bats-assert /bats-assert | ||
RUN /bats-core/install.sh /usr/local | ||
|
||
# Use supervisord to run nginx in the background | ||
COPY ./test/test-config/alpine-supervisord.conf /etc/supervisord.conf | ||
CMD tail -f /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters