add drone config
This commit is contained in:
parent
e08522a2a6
commit
2e22c75ab7
35
.drone.yml
Normal file
35
.drone.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: build
|
||||||
|
steps:
|
||||||
|
- name: docker
|
||||||
|
image: harbor.k-space.ee/k-space/drone-kaniko
|
||||||
|
settings:
|
||||||
|
repo: ${DRONE_REPO}
|
||||||
|
tags: ${DRONE_BRANCH}
|
||||||
|
registry: harbor.codemowers.eu
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: harbor.codemowers.eu/msergo/walias:${DRONE_COMMIT_SHA}
|
||||||
|
settings:
|
||||||
|
registry: harbor.codemowers.eu
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
commands:
|
||||||
|
- npm test
|
||||||
|
|
||||||
|
# services:
|
||||||
|
# - name: mysql
|
||||||
|
# image: mysql:8
|
||||||
|
# environment:
|
||||||
|
# MYSQL_ROOT_PASSWORD: dev
|
||||||
|
# MYSQL_DATABASE: sky
|
||||||
|
|
||||||
|
image_pull_secrets:
|
||||||
|
- dockerconfigjson
|
@ -8,6 +8,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
wildDuck: {
|
wildDuck: {
|
||||||
url: process.env.WILDDUCK_URL,
|
url: process.env.WILDDUCK_URL,
|
||||||
token: process.env.WILDDUCK_TOKEN
|
token: process.env.WILDDUCK_TOKEN,
|
||||||
|
domain: process.env.WILDDUCK_DOMAIN
|
||||||
}
|
}
|
||||||
};
|
};
|
46
readme.md
46
readme.md
@ -1,42 +1,18 @@
|
|||||||
# walias
|
# walias
|
||||||
|
|
||||||
> Aliases for Wild Duck
|
> Manage email aliases for Wild Duck mail server
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
This project uses [Feathers](http://feathersjs.com). An open source framework for building APIs and real-time applications.
|
This project was build for [K-Space Hackathon2023](https://wiki.k-space.ee/en/hackathon/2023)
|
||||||
|
|
||||||
## Getting Started
|
## Features
|
||||||
|
* auth with oidc
|
||||||
|
* headless only, no DB
|
||||||
|
* develop/debug with skaffold on k8s cluster
|
||||||
|
|
||||||
1. Make sure you have [NodeJS](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed.
|
## TODO
|
||||||
2. Install your dependencies
|
* remove TS-related hacks
|
||||||
|
* add tests
|
||||||
```
|
* make nicer UI
|
||||||
cd path/to/walias
|
* implement persistent sessions for multi-docker deployment (redis, db, etc)
|
||||||
npm install
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Start your app
|
|
||||||
|
|
||||||
```
|
|
||||||
npm run compile # Compile TypeScript source
|
|
||||||
npm run migrate # Run migrations to set up the database
|
|
||||||
npm start
|
|
||||||
```
|
|
||||||
|
|
||||||
## Testing
|
|
||||||
|
|
||||||
Run `npm test` and all your tests in the `test/` directory will be run.
|
|
||||||
|
|
||||||
## Scaffolding
|
|
||||||
|
|
||||||
This app comes with a powerful command line interface for Feathers. Here are a few things it can do:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ npx feathers help # Show all commands
|
|
||||||
$ npx feathers generate service # Generate a new Service
|
|
||||||
```
|
|
||||||
|
|
||||||
## Help
|
|
||||||
|
|
||||||
For more information on all the things you can do with Feathers visit [docs.feathersjs.com](http://docs.feathersjs.com).
|
|
Loading…
Reference in New Issue
Block a user