Skip to content

Commit

Permalink
add 'command' instruction to docker-compose generator
Browse files Browse the repository at this point in the history
  • Loading branch information
vsilent committed Jun 13, 2024
1 parent 2fc2214 commit 8eeddc4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ COPY ./src ./src
#RUN cargo sqlx prepare -- --bin stacker

RUN apt-get update && apt-get install --no-install-recommends -y libssl-dev; \
cargo build --bin=console && cargo build --release
cargo build --bin=console --features="explain" && cargo build --release --features="explain"

#RUN ls -la /app/target/release/ >&2

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ volumes:
services:

stacker:
image: trydirect/stacker:0.0.8
image: trydirect/stacker:0.0.9
build: .
container_name: stacker
restart: always
Expand Down
2 changes: 2 additions & 0 deletions src/forms/project/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ pub struct App {
pub url_git: Option<String>,
#[validate(enumerate("always", "no", "unless-stopped", "on-failure"))]
pub restart: String,
pub command: String,
pub volumes: Option<Vec<forms::project::Volume>>,
#[serde(flatten)]
pub environment: forms::project::Environment,
Expand Down Expand Up @@ -144,6 +145,7 @@ impl App {

service.ports = dctypes::Ports::Long(ports);
service.restart = Some(self.restart.clone());
service.command = Some(dctypes::Command::Simple(self.command.clone()));
service.volumes = volumes;
service.environment = dctypes::Environment::KvPair(envs);

Expand Down

0 comments on commit 8eeddc4

Please sign in to comment.