Skip to content

Commit

Permalink
fix(redis): install redis with pkgx instead of flox
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 10, 2024
1 parent f990453 commit 148fd60
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions redis/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ use anyhow::Error;
use fluentci_pdk::dag;

pub fn setup() -> Result<String, Error> {
dag()
.pipeline("setup")?
.with_exec(vec!["mkdir", "-p", ".fluentci"])?
.stdout()?;

let stdout = dag()
.pkgx()?
.with_exec(vec!["mkdir", "-p", ".fluentci"])?
.with_workdir(".fluentci")?
.with_packages(vec![
"redis.io",
"github.com/darthsim/overmind",
"github.com/tmux/tmux",
])?
.with_workdir(".fluentci")?
.with_exec(vec![
"grep -q redis Procfile || echo 'redis: redis-server' >> Procfile",
])?
Expand Down

0 comments on commit 148fd60

Please sign in to comment.