Skip to content

Commit 6e980cb

Browse files
Refactor
1 parent 6059291 commit 6e980cb

File tree

24 files changed

+57
-51
lines changed

24 files changed

+57
-51
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "graph-data-processing",
2+
"name": "processed_data",
33
"dockerComposeFile": "docker-compose.yml",
4-
"service": "graph-data-processing",
4+
"service": "processed_data",
55
"customizations": {
66
"vscode": {
77
"extensions": [

.devcontainer/docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3.8"
22

33
services:
4-
graph-data-processing:
4+
processed_data:
55
build:
66
context: .
77
dockerfile: Dockerfile
@@ -11,3 +11,9 @@ services:
1111
environment:
1212
DATABASE_URL: mysql://root:rootpassword@ispyb/ispyb_build
1313
LOG_LEVEL: DEBUG
14+
15+
ispyb:
16+
image: ghcr.io/diamondlightsource/ispyb-database:v3.0.0
17+
restart: unless-stopped
18+
environment:
19+
MARIADB_ROOT_PASSWORD: rootpassword

.github/workflows/schema.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ jobs:
3939
command: run
4040
args: >
4141
schema
42-
--path graph-data-processing.graphql
42+
--path processed_data.graphql
4343
4444
- name: Upload Schema Artifact
4545
uses: actions/upload-artifact@v4.3.1
4646
with:
47-
name: graph-data-processing.graphql
48-
path: graph-data-processing.graphql
47+
name: processed_data.graphql
48+
path: processed_data.graphql
4949

5050
publish:
5151
# Deduplicate jobs from pull requests and branch pushes within the same repo.
@@ -62,22 +62,22 @@ jobs:
6262
- name: Download Schema Artifact
6363
uses: actions/download-artifact@v4.1.4
6464
with:
65-
name: graph-data-processing.graphql
65+
name: processed_data.graphql
6666

6767
- name: Check Subgraph Schema
6868
run: >
6969
rover subgraph check data-gateway-n63jcf@current
70-
--schema graph-data-processing.graphql
71-
--name graph-data-processing
70+
--schema processed_data.graphql
71+
--name processed_data
7272
env:
7373
APOLLO_KEY: ${{ secrets.APOLLO_STUDIO }}
7474

7575
- name: Publish Subgraph Schema to Apollo Studio
7676
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
7777
run: >
7878
rover subgraph publish data-gateway-n63jcf@current
79-
--routing-url http://graph-data-processing:80
80-
--schema graph-data-processing.graphql
81-
--name graph-data-processing
79+
--routing-url http://processed_data:80
80+
--schema processed_data.graphql
81+
--name processed_data
8282
env:
8383
APOLLO_KEY: ${{ secrets.APOLLO_STUDIO }}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131
],
3232
"rust-analyzer.linkedProjects": [
33-
"./graph-data-processing/Cargo.toml"
33+
"./processed_data/Cargo.toml"
3434
],
3535
"rust-analyzer.showUnlinkedFileNotification": false
3636
}

Cargo.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
2-
default-members = ["graph-data-processing"]
3-
members = ["models", "graph-data-processing"]
2+
default-members = ["processed_data"]
3+
members = ["models", "processed_data"]
44
resolver = "2"
55

66
[workspace.dependencies]

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ WORKDIR /app
66

77
COPY Cargo.toml Cargo.lock .
88
COPY models/Cargo.toml models/Cargo.toml
9-
COPY graph-data-processing/Cargo.toml graph-data-processing/Cargo.toml
9+
COPY processed_data/Cargo.toml processed_data/Cargo.toml
1010

1111
RUN mkdir models/src \
1212
&& touch models/src/lib.rs \
13-
&& mkdir graph-data-processing/src \
14-
&& echo "fn main() {}" > graph-data-processing/src/main.rs \
13+
&& mkdir processed_data/src \
14+
&& echo "fn main() {}" > processed_data/src/main.rs \
1515
&& cargo build --release
1616

1717
COPY . /app
1818

1919
RUN touch models/src/lib.rs \
20-
&& touch graph-data-processing/src/main.rs \
20+
&& touch processed_data/src/main.rs \
2121
&& cargo build --release
2222

2323
FROM gcr.io/distroless/cc AS deploy
2424

25-
COPY --from=build /app/target/release/graph-data-processing /graph-data-processing
25+
COPY --from=build /app/target/release/processed_data /processed_data
2626

27-
ENTRYPOINT ["/graph-data-processing"]
27+
ENTRYPOINT ["/processed_data"]

charts/data-processing/charts/data-processing/Chart.yaml renamed to charts/processed_data/charts/processed_data/Chart.yaml

File renamed without changes.

0 commit comments

Comments
 (0)