@@ -0,0 +1,45 @@
|
||||
# Developer Homepage
|
||||
|
||||
A static portfolio site packaged for deployment with Podman quadlets.
|
||||
|
||||
## Build & Run with Podman
|
||||
|
||||
### Build the image
|
||||
|
||||
```bash
|
||||
podman build -t homepage:latest .
|
||||
```
|
||||
|
||||
### Run the container
|
||||
|
||||
```bash
|
||||
podman run --rm -p 8080:8080 -v ./src:/usr/share/nginx/html:z homepage:latest
|
||||
```
|
||||
|
||||
Visit `http://localhost:8080` in your browser.
|
||||
|
||||
## Deploy with Quadlet
|
||||
|
||||
1. Copy the container definition to systemd:
|
||||
|
||||
```bash
|
||||
mkdir -p ~/.config/containers/systemd
|
||||
cp homepage.container ~/.config/containers/systemd/
|
||||
```
|
||||
|
||||
2. Reload systemd and start the service:
|
||||
|
||||
```bash
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user start homepage.container
|
||||
```
|
||||
|
||||
3. Enable auto-start on boot:
|
||||
|
||||
```bash
|
||||
systemctl --user enable homepage.container
|
||||
```
|
||||
|
||||
## Development
|
||||
|
||||
Source files are in the `src/` directory. Edit `index.html`, `style.css`, and `script.js` directly. Rebuild the image after making changes.
|
||||
Reference in New Issue
Block a user