Skip to content

Commit

Permalink
Added docker/test for ubuntu 14.04
Browse files Browse the repository at this point in the history
  • Loading branch information
rubberduck203 committed Jul 16, 2017
1 parent 591ac05 commit 33ee764
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,16 @@ The integration tests have two purposes.
If the tests is successful, you'll see output from the application and a get successful return code of 0.
All of the dockerfiles assume you have already run the `publish.sh` script.

#### Ubuntu 16.04
#### Ubuntu 14.04

```bash
cd src
docker build -f src/ubuntu14.dockerfile -t rubberduck/gitnstats:ubuntu14 src
docker run rubberduck/gitnstats:ubuntu14
```

#### Ubuntu 16.04

```bash
docker build -f src/ubuntu16.dockerfile -t rubberduck/gitnstats:ubuntu16 src
docker run rubberduck/gitnstats:ubuntu16
```
1 change: 1 addition & 0 deletions gitnstats.sln
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ MinimumVisualStudioVersion = 15.0.26124.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{A756E523-B79C-40D0-994D-CEABD8E67613}"
ProjectSection(SolutionItems) = preProject
src\ubuntu16.dockerfile = src\ubuntu16.dockerfile
src\ubuntu14.dockerfile = src\ubuntu14.dockerfile
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "gitnstats", "src\gitnstats\gitnstats.csproj", "{F9B73133-5937-418C-926A-26739E9FE602}"
Expand Down
25 changes: 25 additions & 0 deletions src/ubuntu14.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ubuntu:14.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
\
# .NET Core dependencies
libc6 \
libcurl3 \
libgcc1 \
libgssapi-krb5-2 \
libicu52 \
liblttng-ust0 \
libssl1.0.0 \
libstdc++6 \
libunwind8 \
libuuid1 \
zlib1g \
# Install git for testing purposes
git \
# Clean up
&& rm -rf /var/lib/apt/lists/*
WORKDIR /root/
RUN git clone https://github.com/rubberduck203/GitNStats
COPY gitnstats/bin/Release/netcoreapp1.1/ubuntu.14.04-x64/publish/ /root/bin/
CMD bin/gitnstats GitNStats/

0 comments on commit 33ee764

Please sign in to comment.