56 lines
1.3 KiB
Markdown
56 lines
1.3 KiB
Markdown
Naliia Dev
|
|
==========
|
|
|
|
# Docker Build and Deploy
|
|
|
|
## Building and Pushing to Gitea Registry
|
|
|
|
To build the Docker image and push to the Gitea registry, run the following commands:
|
|
|
|
### 1. Login to Gitea Registry (if not already logged in)
|
|
|
|
```bash
|
|
docker login gitea.onecluster.org
|
|
```
|
|
|
|
### 2. Build the Image
|
|
|
|
```bash
|
|
docker build \
|
|
--build-arg TRYTOND_VERSION=7.6 \
|
|
--build-arg TRYTON_ADMIN_PASSWORD='YOUR_PASSWORD' \
|
|
-t gitea.onecluster.org/aserrador/naliia_7.6_stable:naliia_7.6_stable \
|
|
-f Dockerfile_Deploy .
|
|
```
|
|
|
|
### 3. Push to Gitea Registry
|
|
|
|
```bash
|
|
docker push gitea.onecluster.org/aserrador/naliia_7.6_stable:naliia_7.6_stable
|
|
```
|
|
|
|
## Image Details
|
|
|
|
- **Registry**: `gitea.onecluster.org`
|
|
- **Repository**: `aserrador/naliia_7.6_stable`
|
|
- **Tag**: `naliia_7.6_stable`
|
|
- **TrytonD Version**: 7.6
|
|
|
|
## Pull the Image
|
|
|
|
To pull the image on another machine:
|
|
|
|
```bash
|
|
docker pull gitea.onecluster.org/aserrador/naliia_7.6_stable:naliia_7.6_stable
|
|
```
|
|
|
|
# Incorporando un Repositorio Git Existente como Submódulo en el Repositorio Activo
|
|
|
|
1. Para agregar un nuevo submódulo, utiliza el comando git submodule add, especificando la URL absoluta o relativa del proyecto a rastrear. En este ejemplo, dentro del repositorio oc-monorepo, se incluye la rama 6.8 de la siguiente manera:
|
|
|
|
```bash
|
|
$ git submodule add -b main [ssh://modelo] modules/[nombre_modulo]
|
|
```
|
|
```
|
|
```
|