Skip to content

Commit

Permalink
Add Dockerfile for openSUSE Tumbleweed
Browse files Browse the repository at this point in the history
  • Loading branch information
sschmid committed Nov 12, 2024
1 parent da8cf80 commit 71c1323
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 8 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/opensuse-tumbleweed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI on openSUSE Tumbleweed

on:
push:
branches: [main, develop]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
submodules: recursive

- name: "Run tests"
run: test/run -p opensuse-tumbleweed
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@ pw update
/usr/local/opt/pw/install --uninstall
```

| Platform | Status |
|---------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| <img src="https://flatpak.org/img/distro/alpine-97c47415.svg" height="48"> | [![CI on Alpine Linux](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/alpine.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/alpine.yml) |
| <img src="https://flatpak.org/img/distro/arch-61d364d6.svg" height="48"> | [![CI on Arch Linux](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/archlinux.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/archlinux.yml) |
| <img src="https://flatpak.org/img/distro/debian-03035138.svg" height="48"> | [![CI on Debian](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/debian.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/debian.yml) |
| <img src="https://flatpak.org/img/distro/fedora-e2366c83.svg" height="48"> | [![CI on Fedora](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/fedora.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/fedora.yml) |
| <img src="https://upload.wikimedia.org/wikipedia/commons/3/3a/MacOS_logo2.svg" height="48"> | [![CI on macOS](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/macos.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/macos.yml) |
| <img src="https://flatpak.org/img/distro/ubuntu-d865890b.svg" height="48"> | [![CI on Ubuntu](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/ubuntu.yml) |
| Platform | Status |
|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| <img src="https://flatpak.org/img/distro/alpine-97c47415.svg" height="48"> | [![CI on Alpine Linux](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/alpine.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/alpine.yml) |
| <img src="https://flatpak.org/img/distro/arch-61d364d6.svg" height="48"> | [![CI on Arch Linux](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/archlinux.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/archlinux.yml) |
| <img src="https://flatpak.org/img/distro/debian-03035138.svg" height="48"> | [![CI on Debian](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/debian.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/debian.yml) |
| <img src="https://flatpak.org/img/distro/fedora-e2366c83.svg" height="48"> | [![CI on Fedora](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/fedora.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/fedora.yml) |
| <img src="https://upload.wikimedia.org/wikipedia/commons/3/3a/MacOS_logo2.svg" height="48"> | [![CI on macOS](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/macos.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/macos.yml) |
| <img src="https://flatpak.org/img/distro/opensuse-6686fd27.svg" height="48"> | [![CI on openSUSE Tumbleweed](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/opensuse-tumbleweed.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/opensuse-tumbleweed.yml) |
| <img src="https://flatpak.org/img/distro/ubuntu-d865890b.svg" height="48"> | [![CI on Ubuntu](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/sschmid/pw-terminal-password-manager/actions/workflows/ubuntu.yml) |

# Quickstart

Expand Down
27 changes: 27 additions & 0 deletions docker/opensuse-tumbleweed/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM opensuse/tumbleweed:latest AS base
WORKDIR /usr/local/opt/pw
COPY DEPENDENCIES.md .
RUN zypper --non-interactive install --no-recommends \
$(cat DEPENDENCIES.md) \
file \
gawk \
gnu_parallel \
xclip \
xorg-x11-server-Xvfb \
&& zypper clean -a \
&& rm -rf /var/cache/zypp/*

FROM base AS pw
WORKDIR /usr/local/opt/pw
COPY src src
COPY plugins plugins
COPY version.txt .
RUN ln -s /usr/local/opt/pw/src/pw /usr/local/bin/pw
WORKDIR /root
COPY docker/docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]

FROM pw AS test
WORKDIR /usr/local/opt/pw
COPY test test
RUN test/bats/bin/bats --jobs $(nproc) test
1 change: 1 addition & 0 deletions test/run
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ while getopts ":aj:mp:" options; do
run_tests archlinux
run_tests debian
run_tests fedora
run_tests opensuse-tumbleweed
run_tests ubuntu
;;
j)
Expand Down

0 comments on commit 71c1323

Please sign in to comment.