Skip to content

Commit

Permalink
feat: move to services (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregkonush authored Oct 11, 2024
1 parent 44428f8 commit 5f0c5d1
Show file tree
Hide file tree
Showing 117 changed files with 355 additions and 467 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/docker-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches:
- "main"
paths:
- "packages/ecran/**"
- "packages/java-executor/**"
- "services/ecran/**"
- "services/java-executor/**"

jobs:
version:
Expand Down Expand Up @@ -36,8 +36,8 @@ jobs:
uses: ./.github/workflows/docker-build-common.yaml
with:
image_name: ecran
dockerfile: ./packages/ecran/Dockerfile
context: ./packages/ecran
dockerfile: ./services/ecran/Dockerfile
context: ./services/ecran
new_tag: ${{ needs.version.outputs.new_tag }}
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
Expand All @@ -48,8 +48,8 @@ jobs:
uses: ./.github/workflows/docker-build-common.yaml
with:
image_name: ecran-worker
dockerfile: ./packages/ecran/Dockerfile.worker
context: ./packages/ecran
dockerfile: ./services/ecran/Dockerfile.worker
context: ./services/ecran
new_tag: ${{ needs.version.outputs.new_tag }}
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
Expand All @@ -60,8 +60,8 @@ jobs:
uses: ./.github/workflows/docker-build-common.yaml
with:
image_name: ecran-migrator
dockerfile: ./packages/ecran/Dockerfile.migrator
context: ./packages/ecran
dockerfile: ./services/ecran/Dockerfile.migrator
context: ./services/ecran
new_tag: ${{ needs.version.outputs.new_tag }}
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
Expand All @@ -72,8 +72,8 @@ jobs:
uses: ./.github/workflows/docker-build-common.yaml
with:
image_name: java-executor
dockerfile: ./packages/java-executor/Dockerfile
context: ./packages/java-executor
dockerfile: ./services/java-executor/Dockerfile
context: ./services/java-executor
new_tag: ${{ needs.version.outputs.new_tag }}
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
Expand Down
20 changes: 1 addition & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,28 +109,10 @@ Install with poetry for package management with pipx
pipx install poetry
```

#### Devtools

Autocomplete

```bash
brew install --cask codewhisperer
```
### Devtools

Github

```bash
brew install gh
```

Install pre-commit

```bash
brew install pre-commit
```

Install pre-commit hooks

```bash
pre-commit install
```
Empty file added next.config.js
Empty file.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"k:install": "./kubernetes/install.sh",
"k:config": "cp kubeconfig ~/.kube/kubeconfig",
"k:bootstrap": "helm template argocd bootstrap/argo-cd --namespace argocd | kubectl apply -f -",
"ecran:dev": "bun run --cwd packages/ecran dev",
"ecran:dev": "bun run --cwd services/ecran dev",
"prepare": "husky"
},
"packageManager": "[email protected]",
Expand Down
4 changes: 3 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- "packages/*"
- "services/*"
426 changes: 0 additions & 426 deletions poetry.lock

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/build-ecran-migrator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Set variables
IMAGE_NAME="kalmyk.duckdns.org/lab/ecran-migrator"
DOCKERFILE="packages/ecran/Dockerfile.migrator"
CONTEXT_PATH="packages/ecran"
DOCKERFILE="services/ecran/Dockerfile.migrator"
CONTEXT_PATH="services/ecran"

# Check if a tag is provided as an argument
if [ $# -eq 1 ]; then
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-ecran-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Set variables
IMAGE_NAME="kalmyk.duckdns.org/lab/ecran-worker"
DOCKERFILE="packages/ecran/Dockerfile.worker"
CONTEXT_PATH="packages/ecran"
DOCKERFILE="services/ecran/Dockerfile.worker"
CONTEXT_PATH="services/ecran"

# Check if a tag is provided as an argument
if [ $# -eq 1 ]; then
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-ecran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Set variables
IMAGE_NAME="kalmyk.duckdns.org/lab/ecran"
DOCKERFILE="packages/ecran/Dockerfile"
CONTEXT_PATH="packages/ecran"
DOCKERFILE="services/ecran/Dockerfile"
CONTEXT_PATH="services/ecran"

# Check if a tag is provided as an argument
if [ $# -eq 1 ]; then
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-java-executor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Set variables
IMAGE_NAME="kalmyk.duckdns.org/lab/java-executor"
DOCKERFILE="packages/java-executor/Dockerfile"
CONTEXT_PATH="packages/java-executor"
DOCKERFILE="services/java-executor/Dockerfile"
CONTEXT_PATH="services/java-executor"

# Check if a tag is provided as an argument
if [ $# -eq 1 ]; then
Expand Down
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.
Loading

0 comments on commit 5f0c5d1

Please sign in to comment.