Skip to content

Commit

Permalink
use docker.io/sourcescan/cargo-near:0.6.0-builder image
Browse files Browse the repository at this point in the history
  • Loading branch information
Canvinus committed Apr 6, 2024
1 parent fdc5ee6 commit f3c3b11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cargo-near/src/commands/build_command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,21 @@ pub fn docker_run(args: BuildCommand) -> color_eyre::eyre::Result<camino::Utf8Pa
.wrap_err("Could not get the working directory for the repository")?
.to_string_lossy()
);
let docker_image = "docker.io/sourcescan/cargo-near:0.6.0-chown"; //XXX need to fix version!!! image from cargo.toml for contract
let docker_image = "docker.io/sourcescan/cargo-near:0.6.0-builder"; //XXX need to fix version!!! image from cargo.toml for contract
let docker_container_name = format!("cargo-near-{}-{}", timestamp, pid);
let near_build_env_ref = format!("NEAR_BUILD_ENVIRONMENT_REF={}", docker_image);
let uid_gid = format!("{}:{}", uid, gid);

let mut docker_args = vec![
"-u", &uid_gid,
"-it",
"--name", &docker_container_name,
"--volume", &volume,
"--rm",
"--workdir", "/host",
"--env", &near_build_env_ref,
docker_image,
"--uid", &uid,
"--gid", &gid,
"--run",
"/bin/bash", "-c"
];

let mut cargo_cmd_list = vec![
Expand Down

0 comments on commit f3c3b11

Please sign in to comment.