Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniini committed May 2, 2024
0 parents commit 8e54603
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Lukko demo image

on:
push:
schedule:
- cron: '15 3 * * *' # every day at 03:15 (just wanted to avoid midnight)

jobs:
build:
name: Build Lukko demo image
runs-on: ubuntu-latest

# https://docs.github.com/en/actions/reference/authentication-in-a-workflow
permissions:
id-token: write
packages: write
contents: read

steps:
- uses: actions/checkout@main
- uses: docker/login-action@main
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- uses: docker/build-push-action@main
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/edera-dev/lukko-demo:latest
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM cgr.dev/chainguard/wolfi-base:latest AS build

WORKDIR /build

RUN apk add build-base git

RUN git clone https://github.com/edera-dev/lukko

RUN cd lukko && make -j$(nproc) && make -j$(nproc) check

FROM cgr.dev/chainguard/wolfi-base:latest AS final

RUN apk add libstdc++

COPY --from=build /build/lukko/liblukko.so /lib/liblukko.so

COPY --from=build /build/lukko/tests/ /examples/

RUN echo "/lib/liblukko.so" >> /etc/ld.so.preload

RUN /sbin/ldconfig -v -n /etc/ld.so.preload

WORKDIR /examples

0 comments on commit 8e54603

Please sign in to comment.