Skip to content

Commit

Permalink
Merge pull request #249 from alphagov/build_own_ubuntu_base
Browse files Browse the repository at this point in the history
build our own ubuntu base image
  • Loading branch information
whi-tw authored Oct 6, 2022
2 parents 2be6cfc + 349a6ab commit 017f269
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/image_middleman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
uses: ./.github/workflows/build-image-base.yml
with:
image: middleman
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
secrets: inherit
21 changes: 21 additions & 0 deletions .github/workflows/image_ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: "Image: ubuntu"
permissions:
actions: write # so 'cancel-workflow-action' can function

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
workflows:
uses: ./.github/workflows/build-image-base.yml
with:
image: ubuntu
platforms: linux/amd64,linux/arm64
secrets: inherit
9 changes: 5 additions & 4 deletions middleman/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM ghcr.io/alphagov/paas/ruby:main

RUN apt-get update \
&& apt-get install -y \
RUN apt update \
&& apt install -y \
build-essential \
libffi-dev \
git \
libcurl4-openssl-dev \
nodejs \
&& gem install \
nodejs

RUN gem install \
middleman
8 changes: 8 additions & 0 deletions ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ubuntu:bionic

RUN apt update \
&& apt install -y \
openssl \
curl \
ca-certificates \
wget
14 changes: 14 additions & 0 deletions ubuntu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Provides Ubuntu. See the Dockerfile to check which version.

This is primarily here to mirror the version from dockerhub. The
purpose is to get that container onto GitHub Container Registry, to
workaround rate limits and make our production use a bit safer.

Additionally, installs some base crypto / net dependencies

## Build locally

```
$ cd ubuntu
$ docker build -t ubuntu .
```

0 comments on commit 017f269

Please sign in to comment.