Skip to content

Gogs latest version #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM centos:7

MAINTAINER Erik Jacobs <erikmjacobs@gmail.com>
MAINTAINER Javier León Peris <javierleonperis@gmail.com>

ARG GOGS_VERSION="0.9.113"
ARG GOGS_VERSION="0.12.1"

LABEL name="Gogs - Go Git Service" \
vendor="Gogs" \
Expand All @@ -19,9 +19,9 @@ ENV HOME=/var/lib/gogs

COPY ./root /

RUN curl -L -o /etc/yum.repos.d/gogs.repo https://dl.packager.io/srv/pkgr/gogs/pkgr/installer/el/7.repo && \
rpm --import https://rpm.packager.io/key && \
RUN curl -L -o /etc/yum.repos.d/gogs.repo https://dl.packager.io/srv/gogs/gogs/main/installer/el/7.repo && \
yum -y install epel-release && \
yum -y update && \
yum -y --setopt=tsflags=nodocs install gogs-${GOGS_VERSION} nss_wrapper gettext && \
yum -y clean all && \
mkdir -p /var/lib/gogs
Expand Down
20 changes: 11 additions & 9 deletions openshift/gogs-persistent-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ objects:
failureThreshold: 10
resources:
limits:
memory: 512Mi
memory: 1Gi
volumeMounts:
- mountPath: /var/lib/pgsql/data
name: gogs-postgres-data
Expand Down Expand Up @@ -238,7 +238,7 @@ objects:
- name: "${GOGS_VERSION}"
from:
kind: DockerImage
name: docker.io/openshiftdemos/gogs:${GOGS_VERSION}
name: docker.io/javierleonperis/openshift-gogs:${GOGS_VERSION}
importPolicy: {}
annotations:
description: The Gogs git server docker image
Expand Down Expand Up @@ -284,7 +284,7 @@ objects:
HOST = ${APPLICATION_NAME}-postgresql:5432
NAME = ${DATABASE_NAME}
USER = ${DATABASE_USER}
PASSWD = ${DATABASE_PASSWORD}
PASSWORD = ${DATABASE_PASSWORD}

[repository]
ROOT = /opt/gogs/data/repositories
Expand All @@ -309,6 +309,7 @@ parameters:
- description: 'Custom hostname for http service route. Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>'
name: HOSTNAME
required: true
value: gogs-git-server-02.apps.osh-jc2.om.dsn.inet
- description: Volume space available for data, e.g. 512Mi, 2Gi
name: GOGS_VOLUME_CAPACITY
required: true
Expand All @@ -323,14 +324,15 @@ parameters:
name: DATABASE_USER
- displayName: Database Password
from: '[a-zA-Z0-9]{8}'
value: gogs
value: changeyourpassword
name: DATABASE_PASSWORD
- displayName: Database Name
name: DATABASE_NAME
value: gogs
- displayName: Database Admin Password
from: '[a-zA-Z0-9]{8}'
generate: expression
#from: '[a-zA-Z0-9]{8}'
#generate: expression
value: changeyourpassword
name: DATABASE_ADMIN_PASSWORD
- displayName: Maximum Database Connections
name: DATABASE_MAX_CONNECTIONS
Expand All @@ -340,11 +342,11 @@ parameters:
value: 12MB
- displayName: Database version (PostgreSQL)
name: DATABASE_VERSION
value: "9.5"
value: "latest"
- name: GOGS_VERSION
displayName: Gogs Version
description: 'Version of the Gogs container image to be used (check the available version https://hub.docker.com/r/openshiftdemos/gogs/tags)'
value: "0.9.97"
description: 'Version of the Gogs container image to be used (check the available version https://hub.docker.com/repository/docker/javierleonperis/openshift-gogs/tags)'
value: "1.0"
required: true
- name: INSTALL_LOCK
displayName: Installation lock
Expand Down