Skip to content

Commit

Permalink
remove -container from container name
Browse files Browse the repository at this point in the history
  • Loading branch information
fcrozat committed Aug 12, 2022
1 parent d54f453 commit de6cb60
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 34 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# SPDX-License-Identifier: MIT
# Defines the tag for OBS and build script builds:
#!BuildTag: suse/alp/workloads/gdm-container:0.1
#!BuildTag: suse/alp/workloads/gdm-container:0.1-%RELEASE%
#!BuildTag: suse/alp/workloads/gdm-container:latest
#!BuildTag: suse/alp/workloads/gdm:0.1
#!BuildTag: suse/alp/workloads/gdm:0.1-%RELEASE%
#!BuildTag: suse/alp/workloads/gdm:latest

FROM opensuse/tumbleweed

LABEL maintainer="Frederic Crozat <[email protected]>"
#ARG GDM_IMAGE_URL="registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm-container:latest"
#ARG GDM_IMAGE_URL="registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm:latest"

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.alp.workloads.gdm
Expand All @@ -16,7 +16,7 @@ LABEL org.opencontainers.image.description="GDM container based on Tumbleweed"
LABEL org.opencontainers.image.version="0.1"
LABEL org.opencontainers.image.url="https://github.com/fcrozat/gdm-container/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opensuse.reference="registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm-container:0.1-%RELEASE%"
LABEL org.opensuse.reference="registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm:0.1-%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL com.suse.supportlevel="techpreview"
LABEL com.suse.eula="beta"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The purpose of this container is to deploy and start GDM in a container, indepen
## To deploy the container
* on host, install the following packages: podman, accountsservice, nss-systemd, systemd-experimental
* ensure SELinux is configured in Permissive mode
* run as root: podman container runlabel install registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm-container:latest
* run as root: podman container runlabel install registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm:latest
* systemctl daemon-reload
* systemctl reload dbus
* systemctl restart accounts-daemon (ensure it uses nss-systemd)
Expand All @@ -17,15 +17,15 @@ This will download gdm container from Open Build Service registry (it is a openS
## To run gdm
* as standalone process in container
** beware there is still some dbus activation issue after login in gdm
** either use: podman container runlabel run registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm-container:latest
** either use: podman container runlabel run registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm:latest
** or systemctl start gdm
* with systemd running in container
** podman container runlabel run-systemd registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm-container:latest
** podman container runlabel run-systemd registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm:latest
** or systemctl start gdm-systemd (still a bit buggy)


## To uninstall the deployed files:
* run as root: podman container runlabel uninstall registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm-container:latest
* run as root: podman container runlabel uninstall registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm:latest

## Security notice
This container is NOT SECURED at all: it is running privileged and can access host system. The purpose of this container is to have another way to deploy gdm, not to try to secure it at all.
Expand Down
24 changes: 0 additions & 24 deletions create-container-podman.sh

This file was deleted.

2 changes: 1 addition & 1 deletion gdm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
value: "1"
- name: HOSTNAME
value: gdm-container
image: registry.opensuse.org/home/fcrozat/branches/opensuse/templates/images/tumbleweed/containers/gdm-container:latest
image: registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/gdm:latest
name: gdm
resources: {}
securityContext:
Expand Down

0 comments on commit de6cb60

Please sign in to comment.