Migrated from github.com/shafiqalibhai/docker-spacewalk
  • Shell 93.7%
  • Dockerfile 6.3%
Find a file
ssa d6e9af5dd1 Update README with comprehensive project information
Generated automatically with structured sections (overview, project structure, installation, usage, contributing, license, repository links). Original README content preserved under "Original README".
2026-04-27 20:37:14 +00:00
bin skip gen ssl cert if exists 2017-10-04 17:59:34 +02:00
config create default config and script for install clients to spacewalk 2016-12-09 13:30:19 +01:00
group_vars set vestion for spacewalk and fix nightly 2017-09-26 17:42:30 +02:00
oracle create spacewalk-oracle instance 2017-07-25 15:36:14 +02:00
roles set vestion for spacewalk and fix nightly 2017-09-26 17:42:30 +02:00
spacewalk install syslinux due to syslinux 2017-10-04 17:03:24 +02:00
.gitignore better way to check db 2017-09-06 12:39:53 +02:00
answer.txt check connection to database 2017-04-11 15:18:31 +02:00
client.yaml add example config 2016-12-12 00:46:07 +01:00
copr-epel6-addons.repo jpackage repo was replace by corp 2017-04-11 13:45:50 +02:00
copr-java-packages.repo correct java-package 2017-04-11 14:07:47 +02:00
Dockerfile reduce rows in Dockerfile 2017-10-04 17:54:15 +02:00
proxy.yaml add script that install proxy 2016-12-08 14:57:21 +01:00
README.md Update README with comprehensive project information 2026-04-27 20:37:14 +00:00
spacewalk-build.sh build packages in Docker for rhels 2016-12-15 21:26:32 +01:00
spacewalk.yaml default version of spacewalk set to latest 2017-05-10 12:51:21 +02:00

docker-spacewalk

Overview

Detected project type: Docker.

This repository was migrated from upstream source github.com/shafiqalibhai/docker-spacewalk and is preserved here for archival, reference, or continued local development.

At a glance

  • Default branch: master
  • Visibility: public
  • Size: 117 KB
  • Created: 2026-04-27
  • Last updated: 2026-04-27
  • Stars / Forks / Open issues: 0 / 0 / 0

Languages

Language Bytes Share
Shell 75,958 bytes 93.7%
Dockerfile 5,102 bytes 6.3%

Repository structure

  • bin/
  • config/
  • group_vars/
  • oracle/
  • roles/
  • spacewalk/
  • .gitignore (39 B)
  • answer.txt (367 B)
  • client.yaml (1,120 B)
  • copr-epel6-addons.repo (392 B)
  • copr-java-packages.repo (396 B)
  • Dockerfile (1,007 B)
  • proxy.yaml (101 B)
  • README.md (2,976 B)
  • spacewalk-build.sh (1,056 B)
  • spacewalk.yaml (126 B)

Getting started

Clone the repository:

git clone https://forgejo.deployview.com/ssa/docker-spacewalk.git
cd docker-spacewalk

Installation

docker build -t image-name .
docker run --rm -it image-name
# or with compose
docker compose up -d

Usage

After building, run the container with the command shown above. Mount volumes and forward ports as required by the application.

Original README

The content below is preserved from the previous README. Headings have been demoted so they don't compete with the new top-level sections.

Spacewalk

How to run in Docker

At first you need installed postgresql. Easy way to use Docker image for creating database: (PostreSQL has to have installed postgresql-pltcl)

docker run -d --name spacewalk-postgresql.docker -h spacewalk-postgresql.docker \
        -e POSTGRES_PASSWORD=password postgres:9.4
docker exec spacewalk-postgresql.docker /bin/bash -c \
        "apt update && apt install postgresql-pltcl-9.4 -y"
docker restart spacewalk-postgresql.docker

Now you can run installation of Spacewalk following command:

docker run -it --link spacewalk-postgresql.docker:postgresql-host \
         -e POSTGRES_PASSWORD=password pajinek/docker-spacewalk:nightly

Available versions:

  • Spacewalk Nightly PostgreSQL - spacewalk:nightly
  • Spacewalk 2.7 PostgreSQL - spacewalk:2.7 or spacewalk:latest
  • Spacewalk 2.6 PostgreSQL - spacewalk:2.6
  • Spacewalk 2.5 PostgreSQL - spacewalk:2.5

How to run by Ansible

The way how to install Spacewalk nightly that takes 3 minute.

At first step you have to create file "config/hosts.ini" with list of hostname, where Spacewalk will be installed by Ansible. Only plain text format in hosts.ini:

[spacewalk]
spacewalk.example.com

[proxy]
proxy.s1.example.com host=spacewalk.example.com
proxy.s2.example.com host=spacewalk.example.com

[client]
client1.s1.example.com host=proxy.s1.example.com
client2.s1.example.com host=proxy.s1.example.com
server1.s2.example.com host=proxy.s2.example.com
server2.s2.example.com host=proxy.s2.example.com

Installation is realized in LXC container by Docker's images and due to it is needed to have installed Docker service on host(s) or you can run following script which prepares enviroment:

ansible-playbook -i config/hosts.ini spacewalk.yaml -tags "prepare"

If system is prepared, run this Ansible script that will install one instance Docker with postgresql and one with Spacewalk latest version.

ansible-playbook -i config/hosts.ini spacewalk.yaml

If you want to install old version or nightly version, you can define image for installation following form

ansible-playbook -i config/hosts.ini spacewalk.yaml -e "docker_image=pajinek/docker-spacewalk:2.6"
ansible-playbook -i config/hosts.ini spacewalk.yaml -e "docker_image=pajinek/docker-spacewalk:nightly"

After installation is completed, go to fill data for first login by webui. If you login to Spacewalk create needed channels and distribution mapping for your systems. In file group_vars/all change following variables by filled data for authentization.

spacewalk_user: "admin"
spacewalk_pass: "passadmin"

And now you can configure proxy and register clients to spacewalk through these proxies.

ansible-playbook -i config/hosts.ini proxy.yaml
ansible-playbook -i config/hosts.ini client.yaml

Contributing

Contributions are welcome. The typical workflow is:

  1. Open an issue describing the change you'd like to make.
  2. Fork the repository (or create a feature branch if you have write access).
  3. Commit your changes with clear, descriptive messages.
  4. Open a pull request against the master branch.

Please follow the existing code style and include tests or reproduction steps where relevant.

License

No LICENSE file is currently present in this repository. Treat the contents as all rights reserved by the author until an explicit license is added. If you intend to share or accept contributions, consider adding an OSI-approved license such as MIT, Apache-2.0, or GPL-3.0.

Repository

  • Browse: https://forgejo.deployview.com/ssa/docker-spacewalk
  • Clone (HTTPS): https://forgejo.deployview.com/ssa/docker-spacewalk.git
  • Clone (SSH): ssh://git@forgejo.deployview.com:30143/ssa/docker-spacewalk.git
  • Upstream / origin: github.com/shafiqalibhai/docker-spacewalk

This README was generated automatically based on repository metadata, contents, and any prior README content. Edit any section above to add project-specific detail.