Skip to content

Commit b07badb

Browse files
committed
package and push to dockerhub
1 parent 1b38bc2 commit b07badb

File tree

4 files changed

+41
-4
lines changed

4 files changed

+41
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ It can be seen in action at gemini://git.ritesh.ch
88

99
## Demo
1010

11-
A local demo can be run by cloning the repository and build a local docker container that will host a sample repository within the container.
11+
A local demo can be run by cloning the repository and building a local docker container that will host a sample repository within the container.
1212

1313
```
1414
git clone git@github.com:masalachai/gemini-git-browser.git && cd gemini-git-browser
1515
sh deploy/deploy.sh development
16-
docker run -p 1965:1965 -it gemini_git_browser
16+
docker run -p 1965:1965 -it gemini_git_browser:latest
1717
```
1818

1919
Once the container is running, the capsule can be seen with a gemini browser at gemini://localhost/
@@ -34,11 +34,11 @@ REPO_DIR=/repositories
3434

3535
```
3636
# $HOME/.config/config/config.toml
37-
allowed = allowed = ["masalachai", "masalachai/gemini-git-browser"]
37+
allowed = ["masalachai", "masalachai/gemini-git-browser"]
3838
title = ""
3939
```
4040

41-
One the `REPO_DIR` variable and `config.toml` file is set, executing the binary should serve the repos at the gemini port.
41+
Once the `REPO_DIR` variable and `config.toml` file is set, executing the binary should serve the repos at the gemini port.
4242

4343
## License
4444

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
GIT_BRANCH=master
2+
PACKAGE=docker
3+
PUSH=docker
4+
DOCKER_HOME="$HOME/.docker/ayravat"
5+
POST_PUSH=""
6+
DOCKER_REGISTRY=https://index.docker.io/
7+
DS_DEBUG=true
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM debian:10-slim
2+
3+
ENV APP_HOME /app
4+
ENV REPO_DIR /repositories
5+
6+
WORKDIR $APP_HOME
7+
EXPOSE 1965
8+
9+
RUN apt update --fix-missing \
10+
&& apt install -y libssl1.1 \
11+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
12+
13+
ADD . $APP_HOME
14+
15+
RUN mkdir -p /root/.config/config \
16+
&& printf "RUST_LOG=northstar=debug bin/gemini-git-browser\n" > start.sh
17+
18+
CMD ["sh", "start.sh"]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: '3.4'
2+
3+
services:
4+
default:
5+
image: ayravat/gemini-git-browser:latest
6+
container_name: gemini_git_browser
7+
restart: always
8+
build:
9+
context: .
10+
dockerfile: Dockerfile
11+
ports:
12+
- "1965:1965"

0 commit comments

Comments
 (0)