Skip to content

Commit

Permalink
Add runner stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
glesica committed Dec 2, 2021
1 parent f863924 commit 2bcd6fd
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 11 deletions.
11 changes: 1 addition & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12)
project(
Mirage
VERSION 1.0.0
VERSION 2.0.0-alpha
HOMEPAGE_URL https://github.com/TravisWheelerLab/Mirage
)

Expand Down Expand Up @@ -53,21 +53,12 @@ add_custom_target(
COMMAND cp
${CMAKE_SOURCE_DIR}/src/run_mirage2.sh
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/mirage2
COMMAND ln
-s ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/mirage2
${CMAKE_SOURCE_DIR}/mirage2
COMMAND cp
${CMAKE_SOURCE_DIR}/src/run_diviner.sh
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/diviner
COMMAND ln
-s ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/diviner
${CMAKE_SOURCE_DIR}/diviner
COMMAND cp
${CMAKE_SOURCE_DIR}/src/run_bazaar.sh
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/bazaar
COMMAND ln
-s ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/bazaar
${CMAKE_SOURCE_DIR}/bazaar
)

add_custom_target(
Expand Down
1 change: 0 additions & 1 deletion Dockerfile_build
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ ENV PATH=${PATH}:/opt/bin

VOLUME /code
WORKDIR /code

12 changes: 12 additions & 0 deletions Dockerfile_run
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM mirage-build AS build

RUN cmake . && \
make && \
make build-dependencies && \
make build-perl && \
make build-shell

FROM debian:bullseye-slim

COPY --from=build build /code
ENV PATH=$PATH:/code
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions tool/build-builder-image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env sh

set -e

docker build -f Dockerfile_build \
-t traviswheelerlab/mirage-build:latest \
$@ \
.
12 changes: 12 additions & 0 deletions tool/build-runner-image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env sh

set -e

# TODO: Update this to read the actual version once we have one
MIRAGE_VERSION=2.0.0-alpha

docker build -f Dockerfile_run \
-t traviswheelerlab/mirage:${MIRAGE_VERSION} \
-t traviswheelerlab/mirage:latest \
$@ \
.
5 changes: 5 additions & 0 deletions tool/push-builder-image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh

set -e

docker push traviswheelerlab/mirage-build:latest
9 changes: 9 additions & 0 deletions tool/push-runner-image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env sh

set -e

# TODO: Update this to read the actual version once we have one
MIRAGE_VERSION=2.0.0-alpha

docker push traviswheelerlab/mirage:${MIRAGE_VERSION}
docker push traviswheelerlab/mirage:latest

0 comments on commit 2bcd6fd

Please sign in to comment.