Skip to content

Commit

Permalink
rename og-injector-rust
Browse files Browse the repository at this point in the history
  • Loading branch information
CptnFizzbin committed Aug 12, 2024
1 parent 2e222f7 commit 5ab5e5e
Show file tree
Hide file tree
Showing 59 changed files with 22 additions and 2,894 deletions.
2 changes: 1 addition & 1 deletion docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ services:
command: yarn build

og-injector:
build: packages/og-injector-rust
build: packages/og-injector
volumes:
- ./.volumes/client:/opt/client:ro
environment:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ services:
ports:
- "${DEV_INJECTOR_PORT}:3000"
volumes:
- ./packages/og-injector-rust/target/debug/og-injector-rust:/usr/bin/og-injector-rust:ro
- ./packages/og-injector/target/debug/og-injector:/usr/bin/og-injector:ro
- ./.volumes/client:/opt/client:ro

db:
Expand Down
3 changes: 0 additions & 3 deletions packages/og-injector-rust/.dockerignore

This file was deleted.

1 change: 0 additions & 1 deletion packages/og-injector-rust/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions packages/og-injector-rust/.idea/.gitignore

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions packages/og-injector-rust/.idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions packages/og-injector-rust/.idea/vcs.xml

This file was deleted.

15 changes: 0 additions & 15 deletions packages/og-injector-rust/Dockerfile

This file was deleted.

5 changes: 3 additions & 2 deletions packages/og-injector/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
log/
target/
.idea/
.env
3 changes: 1 addition & 2 deletions packages/og-injector/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules/
log/
target/
3 changes: 0 additions & 3 deletions packages/og-injector/.idea/.gitignore

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

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

7 changes: 0 additions & 7 deletions packages/og-injector/.idea/misc.xml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/og-injector/.idea/modules.xml

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

12 changes: 0 additions & 12 deletions packages/og-injector/.idea/og-injector.iml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/og-injector/.idea/vcs.xml

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

1 change: 0 additions & 1 deletion packages/og-injector/.yarnrc.yml

This file was deleted.

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

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "og-injector-rust"
name = "og-injector"
version = "0.1.0"
edition = "2021"

Expand Down
20 changes: 11 additions & 9 deletions packages/og-injector/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM node:22.2.0
RUN corepack enable
FROM rust AS builder

WORKDIR /opt/og-injector

COPY ["package.json", "yarn.lock", ".yarnrc.yml", "./"]
RUN --mount=type=cache,target=/root/.yarn \
YARN_CACHE_FOLDER=/root/.yarn \
yarn install --immutable
WORKDIR /opt/build

COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=./target \
cargo build --release \
&& mkdir /opt/dist \
&& cp ./target/release/og-injector /opt/dist/og-injector

FROM ubuntu
COPY --from=builder /opt/dist/og-injector /usr/bin

CMD [ "node", "passenger.js" ]
CMD ["og-injector"]
19 changes: 0 additions & 19 deletions packages/og-injector/config.ts

This file was deleted.

26 changes: 0 additions & 26 deletions packages/og-injector/package.json

This file was deleted.

2 changes: 0 additions & 2 deletions packages/og-injector/passenger.js

This file was deleted.

Loading

0 comments on commit 5ab5e5e

Please sign in to comment.