Skip to content
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

Alpha 6 (v0.0.6-alpha) #243

Merged
merged 125 commits into from
Feb 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
8be0dd4
switched from fastapi-users to fastapi-jwt-auth
SelfhostedPro Nov 2, 2020
458ea5d
working on websocket auth
SelfhostedPro Nov 6, 2020
ec26cab
working on websocket auth
SelfhostedPro Nov 6, 2020
a716c7a
finishing up migration to fastapi-jwt-auth
SelfhostedPro Nov 10, 2020
eb2a39d
linted
SelfhostedPro Nov 10, 2020
b5fca48
linted python
SelfhostedPro Nov 10, 2020
2ce76da
Merge branch 'develop' into auth_rewrite
SelfhostedPro Nov 10, 2020
fa874f6
updated db migration stuff;
SelfhostedPro Nov 10, 2020
fd4b843
in browser editor work
SelfhostedPro Nov 25, 2020
585fdb6
working on auth and editor
SelfhostedPro Nov 28, 2020
d62433d
auth working correctly
SelfhostedPro Dec 1, 2020
b6af5cf
added compose editing and creation
SelfhostedPro Jan 6, 2021
345ac0e
linted
SelfhostedPro Jan 6, 2021
141b4b9
Merge pull request #215 from SelfhostedPro/auth_rewrite
SelfhostedPro Jan 6, 2021
ecfdba0
added delete functionality inside details; visual changes
SelfhostedPro Jan 7, 2021
4d5fbd6
Merge pull request #232 from SelfhostedPro/projects
SelfhostedPro Jan 7, 2021
70d7dd7
error catching for permissions error on mkdir command in write_compose()
SelfhostedPro Jan 7, 2021
20b2861
added delete dialog to projects
SelfhostedPro Jan 7, 2021
93bc421
Merge pull request #233 from SelfhostedPro/projects
SelfhostedPro Jan 7, 2021
a1d437f
use a background task for updating yacht
SelfhostedPro Jan 7, 2021
6219458
fixed router push after project deletion on details page
SelfhostedPro Jan 7, 2021
6ee1ec8
Merge pull request #234 from SelfhostedPro/projects
SelfhostedPro Jan 7, 2021
facead8
fixed router push after project deletion on details page
SelfhostedPro Jan 7, 2021
365257a
Merge pull request #235 from SelfhostedPro/projects
SelfhostedPro Jan 7, 2021
04334bf
added in light/dark mode for project editor
SelfhostedPro Jan 8, 2021
5cd8fa4
fixed command separating each word if there's only one (projects)
SelfhostedPro Jan 8, 2021
c6b74df
Merge pull request #241 from SelfhostedPro/projects
SelfhostedPro Jan 8, 2021
1d4c197
fixed buttons by updating vuetify; removed sidebar for new app/templa…
SelfhostedPro Jan 8, 2021
13079a5
formatted;linted
SelfhostedPro Jan 8, 2021
c2841ed
Merge pull request #242 from SelfhostedPro/projects
SelfhostedPro Jan 8, 2021
75f66bb
changed sidebar titles
SelfhostedPro Jan 8, 2021
f4da19e
changed User schema to allow for UUID, str, or int to be compatible w…
SelfhostedPro Jan 8, 2021
21a20a4
Merge pull request #244 from SelfhostedPro/projects
SelfhostedPro Jan 8, 2021
3b8605d
working on update feature
SelfhostedPro Jan 8, 2021
62b0621
Merge pull request #245 from SelfhostedPro/projects
SelfhostedPro Jan 8, 2021
24dd96d
changed sig verification error to 401;changed action url
SelfhostedPro Jan 12, 2021
f1f09dc
Merge pull request #246 from SelfhostedPro/projects
SelfhostedPro Jan 12, 2021
9fe122f
fixing vuex store function for project actions
SelfhostedPro Jan 14, 2021
da142eb
Merge pull request #248 from SelfhostedPro/projects
SelfhostedPro Jan 14, 2021
154b7f7
fixed DISABLE_AUTH still showing settings
SelfhostedPro Jan 16, 2021
f5453eb
Merge pull request #249 from SelfhostedPro/projects
SelfhostedPro Jan 16, 2021
d264c7d
fixing update functionality
SelfhostedPro Jan 16, 2021
a1a6a33
Merge pull request #250 from SelfhostedPro/projects
SelfhostedPro Jan 16, 2021
5d91ad7
removed -f from docker-compose commands; added wheel; added psycopg2
SelfhostedPro Feb 2, 2021
e6db32e
fixed requirements.txt
SelfhostedPro Feb 2, 2021
eae0b7c
Merge pull request #253 from SelfhostedPro/projects
SelfhostedPro Feb 2, 2021
fcf4298
fixed postgresql requirements
SelfhostedPro Feb 2, 2021
79f1fe2
Merge pull request #254 from SelfhostedPro/projects
SelfhostedPro Feb 2, 2021
3795112
added feedback for project controls
SelfhostedPro Feb 5, 2021
c7d54fe
Merge pull request #255 from SelfhostedPro/projects
SelfhostedPro Feb 5, 2021
2ce17e9
remove envs from docker-compose commands
SelfhostedPro Feb 6, 2021
3b3f944
Merge pull request #256 from SelfhostedPro/projects
SelfhostedPro Feb 6, 2021
7e47dd9
wipe env for docker-compose commands; Add feedback for Project app ac…
SelfhostedPro Feb 6, 2021
0fa6885
Merge pull request #257 from SelfhostedPro/projects
SelfhostedPro Feb 6, 2021
7bee367
added version indicator;TODO: Automate during build process
SelfhostedPro Feb 6, 2021
6799fdc
clear env for docker-compose
SelfhostedPro Feb 7, 2021
6dca00a
Merge pull request #258 from SelfhostedPro/projects
SelfhostedPro Feb 7, 2021
d7e9a91
fixed docker-compose down
SelfhostedPro Feb 7, 2021
dfb83e8
Merge pull request #259 from SelfhostedPro/projects
SelfhostedPro Feb 7, 2021
2e6a607
added VUE_APP_VERSION
SelfhostedPro Feb 8, 2021
a393da1
Merge pull request #261 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
8faf0a6
fixing build var
SelfhostedPro Feb 8, 2021
d3559ce
Merge pull request #262 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
da0cf68
fixing versioning
SelfhostedPro Feb 8, 2021
dabb230
Merge pull request #263 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
11e5631
triggering action
SelfhostedPro Feb 8, 2021
cc1f68d
Merge pull request #264 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
f94a40f
updating action
SelfhostedPro Feb 8, 2021
021b975
Merge pull request #265 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
43173a2
fixed version info
SelfhostedPro Feb 8, 2021
98701ec
Merge pull request #266 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
2e54239
change version build-arg
SelfhostedPro Feb 8, 2021
7a4def5
Merge pull request #267 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
67e5bfd
setting up cache for builds
SelfhostedPro Feb 8, 2021
0ecf45a
Merge pull request #268 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
3462ac8
fixed error handling on compose projects
SelfhostedPro Feb 8, 2021
fcef699
fixed error handling on compose projects
SelfhostedPro Feb 8, 2021
955e2a3
Merge pull request #269 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
c8765cf
changed version format for devel
SelfhostedPro Feb 8, 2021
1121def
Merge pull request #270 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
cd36e02
check for DOCKER_HOST for docker-compose commands
SelfhostedPro Feb 8, 2021
8e200a5
Merge pull request #271 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
329bf63
added build version tags to devel images
SelfhostedPro Feb 8, 2021
5d7abce
Merge pull request #272 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
b483cb2
fixed DOCKER_HOST format; added error handling for docker socket on r…
SelfhostedPro Feb 8, 2021
62a01c7
changed time format in version
SelfhostedPro Feb 8, 2021
76a8c61
Merge pull request #273 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
0213027
fixing appbar menu disappearing even if logged in and auth is enabled
SelfhostedPro Feb 8, 2021
47bb356
Merge pull request #274 from SelfhostedPro/projects
SelfhostedPro Feb 8, 2021
cd01353
added ability to edit an application
SelfhostedPro Feb 9, 2021
4489242
added edit button in application details
SelfhostedPro Feb 9, 2021
e446510
Merge pull request #275 from SelfhostedPro/projects
SelfhostedPro Feb 9, 2021
82c0583
added port label to edit form
SelfhostedPro Feb 9, 2021
3623442
Merge pull request #276 from SelfhostedPro/projects
SelfhostedPro Feb 9, 2021
5dae317
allow empty port settings in edit
SelfhostedPro Feb 9, 2021
25da964
Merge pull request #277 from SelfhostedPro/projects
SelfhostedPro Feb 9, 2021
7ef0bba
scroll with log
SelfhostedPro Feb 9, 2021
cb26b9b
Merge pull request #278 from SelfhostedPro/projects
SelfhostedPro Feb 9, 2021
955d98d
set VUE_APP_VERSION on the latest tag
SelfhostedPro Feb 9, 2021
98309a9
Merge pull request #279 from SelfhostedPro/projects
SelfhostedPro Feb 9, 2021
76b5455
update readme.md
SelfhostedPro Feb 9, 2021
71c2939
fixed udp ports in edit form
SelfhostedPro Feb 9, 2021
dff7d31
Merge pull request #280 from SelfhostedPro/projects
SelfhostedPro Feb 9, 2021
2523a7c
fixed stepper in deploy form; tailing logs to last 200 logs; fix chan…
SelfhostedPro Feb 10, 2021
81f13b1
Merge pull request #281 from SelfhostedPro/projects
SelfhostedPro Feb 10, 2021
b11a855
added comments to app and compose actions
SelfhostedPro Feb 10, 2021
d4944ab
use digest instead of tag for untagged image
SelfhostedPro Feb 10, 2021
f65c42c
linted
SelfhostedPro Feb 10, 2021
714ea4e
use shortid if there's no repodigest
SelfhostedPro Feb 10, 2021
c32fe95
Merge pull request #282 from SelfhostedPro/projects
SelfhostedPro Feb 10, 2021
d1d10d5
added edit dialog, now will edit even if the name is changed
SelfhostedPro Feb 18, 2021
9322595
Merge pull request #284 from SelfhostedPro/nightly
SelfhostedPro Feb 18, 2021
b28323f
working on logout after update
SelfhostedPro Feb 18, 2021
3a38365
Merge pull request #285 from SelfhostedPro/nightly
SelfhostedPro Feb 18, 2021
3178660
fixing DISABLE_AUTH case matching
SelfhostedPro Feb 18, 2021
8fa06d6
Merge pull request #286 from SelfhostedPro/nightly
SelfhostedPro Feb 18, 2021
29180bc
fixing auth check on websockets
SelfhostedPro Feb 19, 2021
d631a6a
Merge pull request #287 from SelfhostedPro/nightly
SelfhostedPro Feb 19, 2021
32a5616
typo on websocket auth
SelfhostedPro Feb 19, 2021
5f494b6
Merge pull request #288 from SelfhostedPro/nightly
SelfhostedPro Feb 19, 2021
09d44cc
fix user schema to include auth status
SelfhostedPro Feb 19, 2021
c5ea0fe
remove console logs
SelfhostedPro Feb 19, 2021
748a40f
Merge pull request #289 from SelfhostedPro/nightly
SelfhostedPro Feb 19, 2021
d9ac6a7
updated readme.md
SelfhostedPro Feb 19, 2021
9288456
Merge pull request #290 from SelfhostedPro/nightly
SelfhostedPro Feb 19, 2021
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
60 changes: 48 additions & 12 deletions .github/workflows/build-devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,53 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
- name: Get current time
uses: 1466587594/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DD--HH

- name: Checkout code
uses: actions/checkout@v2
- name: install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v2
with:
qemu-version: latest
- name: login to docker hub
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
- name: build the image
run: |
docker buildx build --push \
--tag selfhostedpro/yacht:devel \
--platform linux/amd64,linux/arm,linux/arm64 .
platforms: linux/amd64,linux/arm64,linux/arm
push: true
build-args: |
VUE_APP_VERSION=devel-${{ steps.current-time.outputs.formattedTime }}
tags: |
selfhostedpro/yacht:devel
selfhostedpro/yacht:devel-${{ steps.current-time.outputs.formattedTime }}
ghcr.io/selfhostedpro/yacht:devel
ghcr.io/selfhostedpro/yacht:devel-${{ steps.current-time.outputs.formattedTime }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
26 changes: 0 additions & 26 deletions .github/workflows/build-do.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/build-omv.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/build-vue.yml

This file was deleted.

62 changes: 50 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,55 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
- name: Get current time
uses: 1466587594/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DD--HH

- name: Checkout code
uses: actions/checkout@v2
- name: install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v2
with:
qemu-version: latest
- name: login to docker hub
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
- name: build the image
run: |
docker buildx build --push \
--tag selfhostedpro/yacht:latest \
--platform linux/amd64,linux/arm,linux/arm64 .
platforms: linux/amd64,linux/arm64,linux/arm
push: true
build-args: |
VUE_APP_VERSION=v0.0.6-alpha-${{ steps.current-time.outputs.formattedTime }}
tags: |
selfhostedpro/yacht
selfhostedpro/yacht:latest-${{ steps.current-time.outputs.formattedTime }}
selfhostedpro/yacht:v0.0.6-alpha-${{ steps.current-time.outputs.formattedTime }}
ghcr.io/selfhostedpro/yacht
ghcr.io/selfhostedpro/yacht:latest-${{ steps.current-time.outputs.formattedTime }}
ghcr.io/selfhostedpro/yacht:v0.0.6-alpha-${{ steps.current-time.outputs.formattedTime }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Build Vue
FROM node:14.5.0-alpine as build-stage

ARG VUE_APP_VERSION
ENV VUE_APP_VERSION=${VUE_APP_VERSION}

WORKDIR /app
COPY ./frontend/package*.json ./
RUN npm install
Expand All @@ -26,14 +29,16 @@ RUN \
make \
python3-dev \
libffi-dev \
ruby-dev &&\
ruby-dev \
postgresql-dev &&\
echo "**** install packages ****" && \
apk add --no-cache \
python3 \
py3-pip \
nginx &&\
gem install sass &&\
echo "**** Installing Python Modules ****" && \
pip3 install wheel &&\
pip3 install -r requirements.txt &&\
echo "**** Cleaning Up ****" &&\
apk del --purge \
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
[![Layers](https://img.shields.io/microbadger/layers/selfhostedpro/yacht?color=%2341B883&label=Layers&logo=docker&logoColor=%2341B883&style=for-the-badge)](https://hub.docker.com/r/selfhostedpro/yacht)
[![Open Collective](https://img.shields.io/opencollective/all/selfhostedpro.svg?color=%2341B883&logoColor=%2341B883&style=for-the-badge&label=Supporters&logo=open%20collective)](https://opencollective.com/selfhostedpro "please consider helping me by either donating or contributing")

<a href="https://m.do.co/c/d4aa430d72d9">
<img src="https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/PoweredByDO/DO_Powered_by_Badge_blue.png" width="30%" />
</a>

## Yacht
Yacht is a container management UI with a focus on templates and 1-click deployments.

Expand All @@ -30,14 +34,15 @@ Check out the getting started guide if this is the first time you've used Yacht:
* Template Framework
* Easy Template Updating
* Centralized settings for volume management and similar QOL functionality.
* Docker-Compose Compatibility
* Advanced Container Management (Edit/Modify)


## Planned Features:
* Advanced Container Management (Edit/Modify)
* Container Monitoring
* Docker-Compose Compatibility
* Easy access to container interfaces
* User Management
* Scheduled Jobs

*If you want something that's not planned please open a feature request issue and we'll see about getting it added.*

Expand Down
5 changes: 3 additions & 2 deletions backend/alembic/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@

from api.db import models
from api.settings import Settings
from api.auth import Base

print("--- MODELS ---")
print(models)
# Combine metadata from auth and containers/templates
combined_meta_data = MetaData()
for declarative_base in [models.Base, Base]:
for declarative_base in [models.Base]:
for (table_name, table) in declarative_base.metadata.tables.items():
combined_meta_data._add_table(table_name, table.schema, table)

Expand Down
Loading