-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from alphagov/build_own_ubuntu_base
build our own ubuntu base image
- Loading branch information
Showing
5 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . | ||
``` |