This commit is contained in:
parent
bdd045783c
commit
7b1101df72
@ -29,7 +29,7 @@ steps:
|
|||||||
- docker login -u $USER -p $PASS $REGISTRY
|
- docker login -u $USER -p $PASS $REGISTRY
|
||||||
- docker run --rm --privileged $REGISTRY/qemu-user-static --reset -p yes
|
- docker run --rm --privileged $REGISTRY/qemu-user-static --reset -p yes
|
||||||
- git clone --recursive https://git.manalejandro.com/ale/libretranslate-api .
|
- git clone --recursive https://git.manalejandro.com/ale/libretranslate-api .
|
||||||
- cd LibreTranslate && docker buildx build --platform amd64 -t $REGISTRY/libretranslate-api -f ./docker/Dockerfile .
|
- cd LibreTranslate && docker buildx build --build-arg with_models=true --platform amd64 -t $REGISTRY/libretranslate-api -f ./docker/Dockerfile .
|
||||||
- docker push $REGISTRY/libretranslate-api
|
- docker push $REGISTRY/libretranslate-api
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
### Install
|
### Install
|
||||||
|
|
||||||
```
|
```
|
||||||
$ git clone --recurse-submodules https://gitlab.com/manalejandro/libretranslate-api
|
$ git clone --recurse-submodules https://git.manalejandro.com/ale/libretranslate-api
|
||||||
$ cd libretranslate-api/
|
$ cd libretranslate-api/
|
||||||
$ docker compose pull libretranslate-api
|
$ docker compose pull libretranslate-api
|
||||||
$ docker compose build libretranslate
|
$ docker compose build libretranslate
|
||||||
@ -25,7 +25,11 @@ $ curl "http://libretranslate-api:5080/?target=es&text=help"
|
|||||||
|
|
||||||
### Latest docker images
|
### Latest docker images
|
||||||
|
|
||||||
Pull from [gitlab.com registry](https://gitlab.com/manalejandro/libretranslate-api/container_registry/)
|
Pull from manalejandro registry:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker pull registry.manalejandro.com/libretranslate-api
|
||||||
|
```
|
||||||
|
|
||||||
### License
|
### License
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ version: '3'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
libretranslate:
|
libretranslate:
|
||||||
# image: registry.gitlab.com/manalejandro/libretranslate-api/libretranslate-api:latest
|
|
||||||
image: libretranslate
|
image: libretranslate
|
||||||
build:
|
build:
|
||||||
context: ./LibreTranslate
|
context: ./LibreTranslate
|
||||||
|
Loading…
Reference in New Issue
Block a user