Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build-backpack-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: "Build backpack image"

on:
workflow_dispatch: # This allows to kick-off the action manually from GitHub Actions
push:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image and push to GitHub Container Registry
uses: docker/build-push-action@v2
with:
context: ./backpack
push: true
tags: 'ghcr.io/mlibrary/aspace-containerization/aspace-backpack:${{ github.sha }}'
file: ./backpack/Dockerfile
13 changes: 13 additions & 0 deletions backpack/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:22.04

RUN apt-get update && \
apt-get -y install --no-install-recommends \
ca-certificates \
git \
wget \
curl \
mariadb-client \
unzip && \
rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["sleep", "infinity"]
3 changes: 3 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ services:
- solr-data:/var/solr
ports:
- "8983:8983"
backpack:
build:
context: ./backpack
volumes:
app-data:
app-logs:
Expand Down