Skip to content

Commit

Permalink
basic olivetin
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmajestic committed Feb 23, 2024
1 parent 744129f commit 520f32d
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/dockerhub-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Docker Image to Docker Hub

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Login to Docker Hub
run: |
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u mattmajestic --password-stdin
- name: Build and Push to Docker Hub
run: |
docker build -t mattmajestic/olivetin:latest .
docker push mattmajestic/olivetin:latest
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Use jamesread/olivetin:latest as the base image
FROM jamesread/olivetin:latest

# Copy the config.yaml file from your host machine to the /config directory in the Docker image
COPY config.yaml /config/config.yaml
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# olivetin
Olivetin in Docker
# 🚀 OliveTin Docker Project

Run OliveTin in a Docker container with a custom configuration.

## ⚙️ Configuration

Modify `config.yaml` as needed. Refer to the [OliveTin documentation](https://docs.olivetin.app/).

## 🏗️ Build and Run

Run: `docker-compose up`
10 changes: 10 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
actions:
- title: "Hello world!"
shell: echo 'Hello World!'
- title: "Restart media container"
shell: docker restart mediacontainer
icon: box
- title: "Check disk space"
icon: disk
shell: df -h /media
# popupOnStart: execution-dialog-stdout-only
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3'
services:
olivetin:
image: jamesread/olivetin:latest
ports:
- "1337:1337"
volumes:
- ./config.yaml:/config/config.yaml

0 comments on commit 520f32d

Please sign in to comment.