Skip to content

Commit

Permalink
Add docker and version script
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Benjamin <[email protected]>
  • Loading branch information
annymsMthd committed Nov 21, 2017
1 parent 5dbcbf5 commit 7bdd832
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM microsoft/dotnet:2-sdk

ENV MONO_VERSION 5.0.1.1
ENV DOCKER_HOST=tcp://docker:2375

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb http://download.mono-project.com/repo/debian jessie/snapshots/$MONO_VERSION main" > /etc/apt/sources.list.d/mono-official.list
Expand All @@ -18,15 +19,17 @@ COPY build.sh .
COPY preload.cake .
COPY setup.sh .
COPY ./gitver /usr/bin
COPY ./get_versions /usr/bin

RUN chmod +x build.sh
RUN chmod +x setup.sh
RUN chmod +x /usr/bin/get_versions

RUN ./build.sh -s preload.cake
RUN ./setup.sh

WORKDIR /usr/bin
RUN ln -s /build/nuget
RUN ln -s /build/build.sh cake

RUN echo "alias SYNC_VERSION=\"gitver | jq '.FullSemVer' -r\"" >> ~/.bashrc
RUN echo "alias SYNC_VERSION=\"gitver | jq '.FullSemVer' -r\"" >> /etc/profile
RUN curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
12 changes: 12 additions & 0 deletions get_versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

export SYNC_VERSION=$(gitver | jq '.FullSemVer' -r)
export SYNC_DOCKER_VERSION=$(echo $SYNC_VERSION | sed 's/\+/./')

echo "---------------------------------------------------------------"
echo "Sync Version is $SYNC_VERSION"
echo "Sync Docker Version is $SYNC_DOCKER_VERSION"
echo "---------------------------------------------------------------"
echo ""
echo ""
echo ""

0 comments on commit 7bdd832

Please sign in to comment.