docker git
This commit is contained in:
43
README.md
43
README.md
@@ -31,6 +31,49 @@ Tips y configuraciones de ubuntu
|
|||||||
|
|
||||||
docker run --init -d --name="home-assistant" -e "TZ=America/Bogota" -v /home/pi/docker/config:/config --net=host homeassistant/raspberrypi3-homeassistant:stable
|
docker run --init -d --name="home-assistant" -e "TZ=America/Bogota" -v /home/pi/docker/config:/config --net=host homeassistant/raspberrypi3-homeassistant:stable
|
||||||
|
|
||||||
|
### Instalar Gitea
|
||||||
|
|
||||||
|
Descargar repositorio de gitea
|
||||||
|
|
||||||
|
git clone https://github.com/go-gitea/gitea.git
|
||||||
|
|
||||||
|
Editar Fichero DockerFile
|
||||||
|
|
||||||
|
Cambiar linea: **FROM golang:1.10-alpine3.7 AS build-env** por **FROM resin/raspberrypi3-alpine-golang AS build-env**
|
||||||
|
|
||||||
|
y la linea: **FROM alpine:3.7** por **FROM resin/raspberrypi3-alpine:3.7**
|
||||||
|
|
||||||
|
Construir la imagen:
|
||||||
|
docker build -t mdchaparror/gitea .
|
||||||
|
|
||||||
|
Crear archivo docker-compose.yml
|
||||||
|
|
||||||
|
version: "2"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
gitea:
|
||||||
|
external: false
|
||||||
|
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
image: mdchaparror/gitea
|
||||||
|
container_name: gitea
|
||||||
|
environment:
|
||||||
|
- USER_UID=1000
|
||||||
|
- USER_GID=1000
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- gitea
|
||||||
|
volumes:
|
||||||
|
- ./gitea:/data
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
ports:
|
||||||
|
- "5000:3000"
|
||||||
|
- "222:22"
|
||||||
|
Ejecutar:
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
### Backup Raspberry
|
### Backup Raspberry
|
||||||
#### Crear Imagen
|
#### Crear Imagen
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user