Skip to content

Commit

Permalink
Merge pull request #22 from runwaylab/docker-improvements
Browse files Browse the repository at this point in the history
Docker improvements
  • Loading branch information
GrantBirki authored May 10, 2024
2 parents 15cc592 + fb9f4c8 commit b10bdd4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ on:
pull_request:
branches:
- main
paths:
- "Dockerfile"
- "docker-compose.yml"
- ".dockerignore"
- ".github/workflows/docker.yml"
- "acceptance/Dockerfile"
- "acceptance/docker-compose.acceptance.yml"
- "acceptance/ssh_server/Dockerfile"
- ".crystal-version"
- "shard.yml"
- "shard.lock"
push:
branches:
- main
Expand Down Expand Up @@ -37,9 +48,6 @@ jobs:
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=semver,pattern=v{{version}}
type=sha
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://github.com/84codes/crystal-container-images
FROM 84codes/crystal:1.12.1-ubuntu-24.04 AS builder

LABEL org.opencontainers.image.title="runway"
Expand Down Expand Up @@ -34,10 +35,11 @@ COPY . .
# build the project
RUN script/build

FROM 84codes/crystal:1.12.1-ubuntu-24.04
# https://github.com/phusion/baseimage-docker
FROM ghcr.io/phusion/baseimage:noble-1.0.0

# install runtime dependencies
RUN apt-get update && apt-get install libssh2-1-dev -y
RUN apt-get update && apt-get install libssh2-1-dev libevent-dev -y

WORKDIR /app

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<a href="https://github.com/runwayapp/runway/actions/workflows/acceptance.yml"><img src="https://github.com/runwayapp/runway/actions/workflows/acceptance.yml/badge.svg?event=push" alt="acceptance"/></a>
<a href="https://github.com/runwayapp/runway/actions/workflows/build.yml"><img src="https://github.com/runwayapp/runway/actions/workflows/build.yml/badge.svg?event=push" alt="build"/></a>
<a href="https://github.com/runwaylab/runway/actions/workflows/docker.yml/badge.svg"><img src="https://github.com/runwaylab/runway/actions/workflows/docker.yml/badge.svg?event=push" alt="build"/></a>
<a href="https://github.com/runwaylab/runway/actions/workflows/release.yml/badge.svg"><img src="https://github.com/runwaylab/runway/actions/workflows/release.yml/badge.svg?event=push" alt="release"/></a>
</p>

<p align="center">
Expand Down
6 changes: 4 additions & 2 deletions acceptance/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://github.com/84codes/crystal-container-images
FROM 84codes/crystal:1.12.1-ubuntu-24.04 AS builder

WORKDIR /app
Expand Down Expand Up @@ -30,10 +31,11 @@ COPY . .
# build the project
RUN script/build

FROM 84codes/crystal:1.12.1-ubuntu-24.04
# https://github.com/phusion/baseimage-docker
FROM ghcr.io/phusion/baseimage:noble-1.0.0

# install runtime dependencies
RUN apt-get update && apt-get install libssh2-1-dev -y
RUN apt-get update && apt-get install libssh2-1-dev libevent-dev -y

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion src/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Runway
VERSION = "v0.0.3"
VERSION = "v0.0.4"
end

0 comments on commit b10bdd4

Please sign in to comment.