Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM icr.io/ibm/alpine
RUN mkdir -p /home/sldn/html
COPY ./ /home/sldn
WORKDIR "/home/sldn"
EXPOSE 1313
RUN ./bin/hugo -d html -b http://localhost:1313
WORKDIR "/home/sldn/html"
RUN apk add mini_httpd
RUN chown minihttpd /home/sldn/html
CMD mini_httpd -C "/home/sldn/min_http.conf" -D -l stdout
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ Commit and push your changes, merge to master, and wait a few minutes.
- `config.toml` The main config for Hugo


## Docker

I version SLDN by dates, so I keep the dates in the container tag, you can change `20250526` to `latest` or whatever when building locally.

```bash
# To be able to pull from IBM private registry
$> ibmcloud cr login --client podman
$> podman build . -t sldn:20250526
$> podman run -p 1313:1313 sldn:20250526
```
Site will be available on `http://localhost:1313`

## Making Changes.

Files in the /content/reference section are automatically generated and shouldn't be modified by hand. Otherwise, simply creating a pull request for changes is usually sufficient. See the [CONTRIBUTING](https://github.com/softlayer/githubio_source/blob/master/CONTRIBUTING.md) guide for more specific details.
Expand Down
6 changes: 6 additions & 0 deletions min_http.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## do not leave empty lines in here!
#host=www.example.org
port=1313
user=minihttpd
dir=/home/sldn/html
nochroot
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
click
requests