-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
366 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: EpicMorg EcoSystem Misc Images | ||
|
||
on: | ||
# push: | ||
# branches: | ||
# - 'develop' | ||
schedule: | ||
- cron: '0 0 * * 2,4,6' | ||
|
||
jobs: | ||
|
||
################################################################################## | ||
|
||
build-freegpt-webui-image: | ||
name: EpicMorg EcoSystem freegpt-webui Image | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Log into registry | ||
run: echo "${{ secrets.DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.DOCKER_SERVER_LOGIN }}" --password-stdin | ||
|
||
- name: Test Make | ||
run: make | ||
|
||
- name: Build and Deploy freegpt-webui 1.0 | ||
run: cd linux/ecosystem/freegpt-webui/chat/1.0 && make build && make deploy | ||
|
||
- name: Build and Deploy freegpt-webui 1.1 | ||
run: cd linux/ecosystem/freegpt-webui/chat/1.1 && make build && make deploy | ||
|
||
- name: Build and Deploy freegpt-webui 1.2 | ||
run: cd linux/ecosystem/freegpt-webui/chat/1.2 && make build && make deploy | ||
|
||
- name: Build and Deploy freegpt-webui 1.3 | ||
run: cd linux/ecosystem/freegpt-webui/chat/1.3 && make build && make deploy | ||
|
||
- name: Build and Deploy freegpt-webui 1.3.1 | ||
run: cd linux/ecosystem/freegpt-webui/chat/1.3.1 && make build && make deploy | ||
|
||
- name: Build and Deploy freegpt-webui 1.3.2 | ||
run: cd linux/ecosystem/freegpt-webui/chat/1.3.2 && make build && make deploy | ||
|
||
- name: Build and Deploy freegpt-webui 1.4 | ||
run: cd linux/ecosystem/freegpt-webui/chat/1.4 && make build && make deploy | ||
|
||
- name: Build and Deploy freegpt-webui latest | ||
run: cd linux/ecosystem/freegpt-webui/chat/latest && make build && make deploy | ||
|
||
################################################################################## | ||
|
||
- name: Build and Deploy freegpt-webui endpoint 1.3 | ||
run: cd linux/ecosystem/freegpt-webui/endpoint/1.3 && make build && make deploy | ||
|
||
- name: Build and Deploy freegpt-webui endpoint 1.3.1 | ||
run: cd linux/ecosystem/freegpt-webui/endpoint/1.3.1 && make build && make deploy | ||
|
||
- name: Build and Deploy freegpt-webui endpoint 1.3.2 | ||
run: cd linux/ecosystem/freegpt-webui/endpoint/1.3.2 && make build && make deploy | ||
|
||
- name: Build and Deploy freegpt-webui endpoint 1.4 | ||
run: cd linux/ecosystem/freegpt-webui/endpoint/1.4 && make build && make deploy | ||
|
||
- name: Build and Deploy freegpt-webui endpoint latest | ||
run: cd linux/ecosystem/freegpt-webui/endpoint/latest && make build && make deploy | ||
|
||
################################################################################## | ||
- name: Cleanup | ||
run: make docker-clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
################################################################## | ||
################################################################## | ||
################################################################## | ||
# Build stage | ||
################################################################## | ||
################################################################## | ||
################################################################## | ||
FROM epicmorg/python:3.10-develop AS build | ||
|
||
ARG FREEGPT_VERSION=1.4 | ||
|
||
ENV FREEGPT_PATH=/app | ||
ENV FREEGPT_PORT=1338 | ||
ENV FREEGTP_PY_BIN=/root/.local/bin | ||
ENV PATH=/root/.local/bin:$PATH | ||
|
||
RUN git clone --depth 1 --branch ${FREEGPT_VERSION} https://github.com/Em1tSan/freegpt-webui-ru.git ${FREEGPT_PATH} && \ | ||
rm -rfv ${FREEGPT_PATH}/.git | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
libffi-dev cmake \ | ||
libcurl4-openssl-dev && \ | ||
pip3 install --user --no-cache-dir -r ${FREEGPT_PATH}/requirements-docker.txt | ||
|
||
################################################################## | ||
################################################################## | ||
################################################################## | ||
# Production stage | ||
################################################################## | ||
################################################################## | ||
################################################################## | ||
FROM epicmorg/python:3.10 AS production | ||
|
||
ENV FREEGPT_PATH=/app | ||
ENV FREEGPT_PORT=1338 | ||
ENV FREEGTP_PY_BIN=/root/.local/bin | ||
ENV PATH=/root/.local/bin:$PATH | ||
|
||
RUN mkdir -p ${FREEGTP_PY_BIN} ${FREEGPT_PATH} | ||
|
||
################################################################## | ||
# Copy bins | ||
################################################################## | ||
COPY --from=build /root/.local /root/.local | ||
COPY --from=build /app /app | ||
|
||
################################################################## | ||
# cleaninig up | ||
################################################################## | ||
RUN apt clean -y && \ | ||
apt-get clean all && \ | ||
apt autoclean -y && \ | ||
rm -rfv /var/lib/apt/lists/* && \ | ||
rm -rfv /var/cache/apt/archives/*.deb && \ | ||
rm -rfv /tmp/* | ||
|
||
WORKDIR ${FREEGPT_PATH} | ||
EXPOSE ${FREEGPT_PORT} | ||
|
||
CMD ["python3", "./run.py"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: '3.9' | ||
services: | ||
app: | ||
image: "epicmorg/freegpt-webui:1.4" | ||
build: | ||
context: . |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
all: app | ||
|
||
app: | ||
make build | ||
make deploy | ||
make clean | ||
|
||
build: | ||
docker-compose build --compress --no-cache --progress plain | ||
|
||
deploy: | ||
docker-compose push | ||
|
||
clean: | ||
docker container prune -f | ||
docker image prune -f | ||
docker network prune -f | ||
docker volume prune -f | ||
docker system prune -af |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
################################################################## | ||
################################################################## | ||
################################################################## | ||
# Production stage | ||
################################################################## | ||
################################################################## | ||
################################################################## | ||
FROM epicmorg/freegpt-webui:1.3.1 AS production | ||
|
||
ENV FREEGPT_PORT=1337 | ||
CMD ["python3", "./endpoint.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
all: app | ||
|
||
app: | ||
make build | ||
make deploy | ||
make clean | ||
|
||
build: | ||
docker-compose build --compress --no-cache --progress plain | ||
|
||
deploy: | ||
docker-compose push | ||
|
||
clean: | ||
docker container prune -f | ||
docker image prune -f | ||
docker network prune -f | ||
docker volume prune -f | ||
docker system prune -af |
6 changes: 6 additions & 0 deletions
6
linux/ecosystem/freegpt-webui/endpoint/1.3.1/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: '3.9' | ||
services: | ||
app: | ||
image: "epicmorg/freegpt-webui:1.3.1-endpoint" | ||
build: | ||
context: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
################################################################## | ||
################################################################## | ||
################################################################## | ||
# Production stage | ||
################################################################## | ||
################################################################## | ||
################################################################## | ||
FROM epicmorg/freegpt-webui:1.3.2 AS production | ||
|
||
ENV FREEGPT_PORT=1337 | ||
CMD ["python3", "./endpoint.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
all: app | ||
|
||
app: | ||
make build | ||
make deploy | ||
make clean | ||
|
||
build: | ||
docker-compose build --compress --no-cache --progress plain | ||
|
||
deploy: | ||
docker-compose push | ||
|
||
clean: | ||
docker container prune -f | ||
docker image prune -f | ||
docker network prune -f | ||
docker volume prune -f | ||
docker system prune -af |
6 changes: 6 additions & 0 deletions
6
linux/ecosystem/freegpt-webui/endpoint/1.3.2/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: '3.9' | ||
services: | ||
app: | ||
image: "epicmorg/freegpt-webui:1.3.2-endpoint" | ||
build: | ||
context: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
################################################################## | ||
################################################################## | ||
################################################################## | ||
# Production stage | ||
################################################################## | ||
################################################################## | ||
################################################################## | ||
FROM epicmorg/freegpt-webui:1.3 AS production | ||
|
||
ENV FREEGPT_PORT=1337 | ||
CMD ["python3", "./endpoint.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
all: app | ||
|
||
app: | ||
make build | ||
make deploy | ||
make clean | ||
|
||
build: | ||
docker-compose build --compress --no-cache --progress plain | ||
|
||
deploy: | ||
docker-compose push | ||
|
||
clean: | ||
docker container prune -f | ||
docker image prune -f | ||
docker network prune -f | ||
docker volume prune -f | ||
docker system prune -af |
6 changes: 6 additions & 0 deletions
6
linux/ecosystem/freegpt-webui/endpoint/1.3/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: '3.9' | ||
services: | ||
app: | ||
image: "epicmorg/freegpt-webui:1.3-endpoint" | ||
build: | ||
context: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
################################################################## | ||
################################################################## | ||
################################################################## | ||
# Production stage | ||
################################################################## | ||
################################################################## | ||
################################################################## | ||
FROM epicmorg/freegpt-webui:1.4 AS production | ||
|
||
ENV FREEGPT_PORT=1337 | ||
CMD ["python3", "./endpoint.py"] |
Oops, something went wrong.