Skip to content

YOCKOW/DockerSwiftApacheCombination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is DockerSwiftApacheCombination?

This repository includes container image which enables you to run CGI programs written in Swift via Apache HTTP Web Server.

Packages

You can fetch the built container images from ghcr.io/yockow/swift-de-cgi.
See its Versions.

Tag List

Swift 6.0.3 Swift 6.1.3 Swift 6.2.0
Ubuntu 22.04 Swift_6.0.3-jammy-latest Swift_6.1.3-jammy-latest Swift_6.2.0-jammy-latest
Ubuntu 24.04 Swift_6.0.3-noble-latest Swift_6.1.3-noble-latest Swift_6.2.0-noble-latest
Debian 12.12 n/a n/a Swift_6.2.0-bookworm-latest

How to use

As a default, tools/entrypoint is used as ENTRYPOINT program.

You can run the container image just as an HTTP server:

# docker run -it -d --rm -p 60080:80 ghcr.io/yockow/swift-de-cgi:Swift_6.2.0-noble-latest
# curl localhost:60080
<html><body><h1>It works!</h1></body></html>

You can specify httpd.conf:

# docker run -it -d --rm -v /path/to/my/web:/home/swifche/web -p 80:80 ghcr.io/yockow/swift-de-cgi:Swift_6.2.0-noble-latest httpd -f /home/swifche/web/httpd.conf

User/Group

This container has a user named swifche and a group named swifche. You can run the container image with changing group ID of swifche via the environment variable WWW_GROUP_ID. It may be convenient when you want to mount your own volume to the container and share a group ID.

Notice

The image is based on swift:slim. You will need other container images (e.g. swift:latest) to build your Swift programs.

You can see an example at GitHub.com/YOCKOW/Eutardigrada.YOCKOW.jp

License

MIT License.
See "LICENSE.txt" for more information.

Caveat

Whereas this repository itself is licensed under MIT License, the deployed container image contains some other open source softwares. Their license files are in the directory at /licenses and you can see them by executing show-licenses in the container.

About

Docker container image for folks who want to run Swift CGI via Apache HTTP Server.

Resources

License

Stars

Watchers

Forks

Packages