Skip to content

Commit 637b0f2

Browse files
authored
chore: remove builder (#1637)
1 parent cca27d9 commit 637b0f2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+20
-1205
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ resolver = "2"
33
members = [
44
"admin",
55
"auth",
6-
"builder",
76
"cargo-shuttle",
87
"codegen",
98
"common",

Containerfile

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ COPY --from=chef-planner /build .
4545
RUN cargo build \
4646
$(if [ "$CARGO_PROFILE" = "release" ]; then echo --release; fi) \
4747
--bin shuttle-auth \
48-
# --bin shuttle-builder \
4948
--bin shuttle-deployer \
5049
--bin shuttle-gateway \
5150
--bin shuttle-logger \
@@ -71,20 +70,6 @@ ENTRYPOINT ["/usr/local/bin/shuttle-auth"]
7170
FROM shuttle-auth AS shuttle-auth-dev
7271

7372

74-
#### BUILDER
75-
# ARG RUSTUP_TOOLCHAIN
76-
# FROM docker.io/library/rust:${RUSTUP_TOOLCHAIN}-bookworm AS shuttle-builder
77-
# ARG SHUTTLE_SERVICE_VERSION
78-
# ENV SHUTTLE_SERVICE_VERSION=${SHUTTLE_SERVICE_VERSION}
79-
# ARG CARGO_PROFILE
80-
# ARG prepare_args
81-
# COPY builder/prepare.sh /prepare.sh
82-
# RUN /prepare.sh "${prepare_args}"
83-
# COPY --from=chef-builder /build/target/${CARGO_PROFILE}/shuttle-builder /usr/local/bin
84-
# ENTRYPOINT ["/usr/local/bin/shuttle-builder"]
85-
# FROM shuttle-builder AS shuttle-builder-dev
86-
87-
8873
#### DEPLOYER
8974
ARG RUSTUP_TOOLCHAIN
9075
FROM docker.io/library/rust:${RUSTUP_TOOLCHAIN}-bookworm AS shuttle-deployer

DEVELOPING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ make images
203203
make docker-compose.rendered.yml
204204

205205
# then run
206-
docker compose -f docker-compose.rendered.yml up provisioner resource-recorder logger otel-collector builder
206+
docker compose -f docker-compose.rendered.yml up provisioner resource-recorder logger otel-collector
207207
```
208208

209209
This starts the provisioner and the auth service, while preventing `gateway` from starting up.
@@ -212,7 +212,7 @@ Make sure an admin user is inserted into auth and that the key is used by cargo-
212212
We're now ready to start a local run of the deployer:
213213

214214
```bash
215-
OTLP_ADDRESS=http://127.0.0.1:4317 cargo run -p shuttle-deployer -- --provisioner-address http://localhost:3000 --auth-uri http://localhost:8008 --resource-recorder http://localhost:8007 --builder-uri http://localhost:8009 --logger-uri http://localhost:8010 --proxy-fqdn local.rs --admin-secret dh9z58jttoes3qvt --local --project-id "01H7WHDK23XYGSESCBG6XWJ1V0" --project <name>
215+
OTLP_ADDRESS=http://127.0.0.1:4317 cargo run -p shuttle-deployer -- --provisioner-address http://localhost:3000 --auth-uri http://localhost:8008 --resource-recorder http://localhost:8007 --logger-uri http://localhost:8010 --proxy-fqdn local.rs --admin-secret dh9z58jttoes3qvt --local --project-id "01H7WHDK23XYGSESCBG6XWJ1V0" --project <name>
216216
```
217217

218218
The `<name>` needs to match the name of the project that will be deployed to this deployer.

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ RUSTUP_TOOLCHAIN=1.76.0
2323

2424
TAG?=$(shell git describe --tags --abbrev=0)
2525
AUTH_TAG?=$(TAG)
26-
BUILDER_TAG?=$(TAG)
2726
DEPLOYER_TAG?=$(TAG)
2827
GATEWAY_TAG?=$(TAG)
2928
LOGGER_TAG?=$(TAG)
@@ -58,7 +57,7 @@ CONTAINER_REGISTRY=public.ecr.aws/shuttle
5857
# make sure we only ever go to production with `--tls=enable`
5958
USE_TLS=enable
6059
CARGO_PROFILE=release
61-
RUST_LOG?=nbuild_core=warn,shuttle=debug,info
60+
RUST_LOG?=shuttle=debug,info
6261
else
6362
DOCKER_COMPOSE_FILES=docker-compose.yml docker-compose.dev.yml
6463
STACK?=shuttle-dev
@@ -68,7 +67,7 @@ CONTAINER_REGISTRY=public.ecr.aws/shuttle-dev
6867
USE_TLS?=disable
6968
# default for local run
7069
CARGO_PROFILE?=debug
71-
RUST_LOG?=nbuild_core=warn,shuttle=debug,info
70+
RUST_LOG?=shuttle=debug,info
7271
DEV_SUFFIX=-dev
7372
DEPLOYS_API_KEY?=gateway4deployes
7473
GATEWAY_ADMIN_KEY?=dh9z58jttoes3qvt
@@ -104,7 +103,6 @@ endif
104103
DOCKER_COMPOSE_ENV=\
105104
STACK=$(STACK)\
106105
AUTH_TAG=$(AUTH_TAG)\
107-
BUILDER_TAG=$(BUILDER_TAG)\
108106
DEPLOYER_TAG=$(DEPLOYER_TAG)\
109107
GATEWAY_TAG=$(GATEWAY_TAG)\
110108
LOGGER_TAG=$(LOGGER_TAG)\
@@ -147,7 +145,7 @@ cargo-clean:
147145

148146
images: the-shuttle-images postgres otel
149147

150-
the-shuttle-images: shuttle-auth shuttle-deployer shuttle-gateway shuttle-logger shuttle-provisioner shuttle-resource-recorder # shuttle-builder
148+
the-shuttle-images: shuttle-auth shuttle-deployer shuttle-gateway shuttle-logger shuttle-provisioner shuttle-resource-recorder
151149

152150
shuttle-%:
153151
$(DOCKER_BUILD) \

Makefile.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ proto-gen \
107107
$OP \
108108
-d proto \
109109
-o proto/src/generated \
110-
-f proto/builder.proto \
111110
-f proto/logger.proto \
112111
-f proto/provisioner.proto \
113112
-f proto/resource-recorder.proto \

auth/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async fn main() -> io::Result<()> {
1515

1616
trace!(args = ?args, "parsed args");
1717

18-
setup_tracing(tracing_subscriber::registry(), Backend::Auth, None);
18+
setup_tracing(tracing_subscriber::registry(), Backend::Auth);
1919

2020
let pool = pgpool_init(args.db_connection_uri.as_str())
2121
.await

builder/Cargo.toml

Lines changed: 0 additions & 37 deletions
This file was deleted.

builder/prepare.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)