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 234c2e5 commit f990453
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions redis/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ 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()
.flox()?
.with_workdir(".fluentci")?
.with_exec(vec![
"flox", "install", "redis", "overmind", "tmux", "openssl",
.pkgx()?
.with_exec(vec!["mkdir", "-p", ".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
2 changes: 1 addition & 1 deletion redis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub mod helpers;
pub fn start(_args: String) -> FnResult<String> {
helpers::setup()?;
let stdout = dag()
.flox()?
.pkgx()?
.with_workdir(".fluentci")?
.with_exec(vec!["overmind", "--version"])?
.with_exec(vec!["redis-server", "--version"])?
Expand Down

0 comments on commit f990453

Please sign in to comment.