mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
Set oodikone build action to cache from multiple images, upgrade slackbot-action
This commit is contained in:
@@ -24,7 +24,10 @@ jobs:
|
|||||||
- name: "Build and push"
|
- name: "Build and push"
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
cache-from: type=registry,ref=toska/oodikone2-backend:staging
|
cache-from: |
|
||||||
|
type=registry,ref=toska/oodikone2-backend:trunk
|
||||||
|
type=registry,ref=toska/oodikone2-backend:staging
|
||||||
|
type=registry,ref=toska/oodikone2-backend:latest
|
||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
context: services/backend
|
context: services/backend
|
||||||
push: true
|
push: true
|
||||||
@@ -47,7 +50,10 @@ jobs:
|
|||||||
- name: "Build and push"
|
- name: "Build and push"
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
cache-from: type=registry,ref=toska/oodikone2-frontend:staging
|
cache-from: |
|
||||||
|
type=registry,ref=toska/oodikone2-frontend:trunk
|
||||||
|
type=registry,ref=toska/oodikone2-frontend:staging
|
||||||
|
type=registry,ref=toska/oodikone2-frontend:latest
|
||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
context: services/frontend
|
context: services/frontend
|
||||||
push: true
|
push: true
|
||||||
@@ -86,7 +92,10 @@ jobs:
|
|||||||
- name: "Build and push"
|
- name: "Build and push"
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
cache-from: type=registry,ref=toska/oodikone2-userservice:staging
|
cache-from: |
|
||||||
|
type=registry,ref=toska/oodikone2-userservice:trunk
|
||||||
|
type=registry,ref=toska/oodikone2-userservice:staging
|
||||||
|
type=registry,ref=toska/oodikone2-userservice:latest
|
||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
context: services/userservice
|
context: services/userservice
|
||||||
push: true
|
push: true
|
||||||
@@ -102,10 +111,10 @@ jobs:
|
|||||||
if: success()
|
if: success()
|
||||||
steps:
|
steps:
|
||||||
- name: "Send notification to slack"
|
- name: "Send notification to slack"
|
||||||
uses: UniversityOfHelsinkiCS/slackbot-action@v1.4.1
|
uses: UniversityOfHelsinkiCS/slackbot-action@v1.4.2
|
||||||
with:
|
with:
|
||||||
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
||||||
message-type: deployment-success
|
message-type: deployment
|
||||||
deployment-target: staging
|
deployment-target: staging
|
||||||
|
|
||||||
report_failure:
|
report_failure:
|
||||||
@@ -118,7 +127,7 @@ jobs:
|
|||||||
if: failure()
|
if: failure()
|
||||||
steps:
|
steps:
|
||||||
- name: "Send notification to slack"
|
- name: "Send notification to slack"
|
||||||
uses: UniversityOfHelsinkiCS/slackbot-action@v1.4.1
|
uses: UniversityOfHelsinkiCS/slackbot-action@v1.4.2
|
||||||
with:
|
with:
|
||||||
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
||||||
message-type: deployment-failure
|
message-type: deployment-failure
|
||||||
|
|||||||
@@ -1,18 +1,19 @@
|
|||||||
# oodikone
|
# Oodikone
|
||||||
|
|
||||||
[](https://app.circleci.com/pipelines/github/UniversityOfHelsinkiCS/oodikone)
|
An application for analyzing university data, running at [https://oodikone.cs.helsinki.fi/](https://oodikone.cs.helsinki.fi/).
|
||||||
|
|
||||||
An application for analyzing university data. The entire development environment runs in a Docker network that's defined in the `docker-compose.yml` file. The specifics of what this means for setting up the environment and accessing logs is discussed in a later section.
|
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
To run Oodikone locally, you will need the following:
|
To run Oodikone locally, you will need the following:
|
||||||
|
|
||||||
1. [Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/) running on your system.
|
1. Applications:
|
||||||
2. Membership of [Toska's GitHub organisation](https://github.com/UniversityOfHelsinkiCS).
|
|
||||||
3. SSH key set up for GitHub (see [docs](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh)).
|
- [Docker](https://docs.docker.com/install/) (at least version 20),
|
||||||
4. Local clone of this repository.
|
- [Docker Compose](https://docs.docker.com/compose/install/)(at least version 0.29) and
|
||||||
5. Run the CLI (see [Installation](#Installation))
|
- [npm](https://docs.npmjs.com/cli/v7) (at least version 7)
|
||||||
|
|
||||||
|
2. Access to Toska Docker Hub, see Toska Gitlab for more information on how to login
|
||||||
|
3. (Optional) For real data setup, access to Toskas production servers.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -22,13 +23,13 @@ Launch the CLI and follow the instructions:
|
|||||||
npm run cli
|
npm run cli
|
||||||
```
|
```
|
||||||
|
|
||||||
*Please use a terminal at least 80 characters wide, the CLI is a bit rudimentary* 😊
|
_Please use a terminal at least 80 characters wide, the CLI is a bit rudimentary_ 😊
|
||||||
|
|
||||||
The acual oodikone can be accessed at [http://localhost:8081/](http://localhost:8081/) and Adminer at [http://localhost:5050/](http://localhost:5050/?pgsql=db&username=postgres). Adminer requires you to login with username `postgres` and password `postgres`.
|
The acual oodikone can be accessed at [http://localhost:8081/](http://localhost:8081/) and Adminer at [http://localhost:5050/](http://localhost:5050/?pgsql=db&username=postgres). Adminer requires you to login with username `postgres` and password `postgres`.
|
||||||
|
|
||||||
### Populate Redis on Fresh Install
|
### Populate Redis on Fresh Install
|
||||||
|
|
||||||
On a fresh install some features do not work because the redis store is empty. To populate redis, navigate to [http://localhost:8081/updater](http://localhost:8081/updater), and click *Refresh Statistics*.
|
On a fresh install some features do not work because the redis store is empty. To populate redis, navigate to [http://localhost:8081/updater](http://localhost:8081/updater), and click _Refresh Statistics_.
|
||||||
|
|
||||||
### What the CLI does
|
### What the CLI does
|
||||||
|
|
||||||
@@ -212,10 +213,10 @@ http://localhost:8082/v1/students?token=dev
|
|||||||
body
|
body
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
{
|
{
|
||||||
"studentnumbers": [
|
"studentnumbers": [
|
||||||
"014598456"
|
"014598456"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -255,7 +256,6 @@ scp -r -o ProxyCommand="ssh -W %h:%p melkki.cs.helsinki.fi" oodikone.cs.helsinki
|
|||||||
> ```bash
|
> ```bash
|
||||||
> scp -o ProxyCommand="ssh -W %h:%p commonuser@server1" > commonuser@server2:/<remotePath> <localpath>
|
> scp -o ProxyCommand="ssh -W %h:%p commonuser@server1" > commonuser@server2:/<remotePath> <localpath>
|
||||||
> ```
|
> ```
|
||||||
>
|
|
||||||
|
|
||||||
## Known situations and ways to handle them
|
## Known situations and ways to handle them
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user