Skip to content

Commit 1d80db1

Browse files
author
Himani Anil Deshpande
committed
Update the efs-utils to use a different Cargo.toml
1 parent 572d91d commit 1d80db1

File tree

4 files changed

+57
-2
lines changed

4 files changed

+57
-2
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[package]
2+
name = "efs-proxy"
3+
edition = "2021"
4+
build = "build.rs"
5+
# The version of efs-proxy is tied to efs-utils.
6+
version = "2.1.0"
7+
publish = false
8+
9+
[dependencies]
10+
anyhow = "1.0.72"
11+
async-trait = "0.1"
12+
bytes = { version = "1.4.0" }
13+
chrono = "0.4"
14+
clap = { version = "=4.0.0", features = ["derive"] }
15+
fern = "0.6"
16+
futures = "0.3"
17+
log = "0.4"
18+
log4rs = { version = "0", features = ["rolling_file_appender", "compound_policy", "size_trigger", "fixed_window_roller"]}
19+
nix = { version = "0.26.2", features = ["signal"]}
20+
onc-rpc = "0.2.3"
21+
rand = "0.8.5"
22+
s2n-tls = "0.0"
23+
s2n-tls-tokio = "0.0"
24+
s2n-tls-sys = "0.0"
25+
serde = {version="1.0.175",features=["derive"]}
26+
serde_ini = "0.2.0"
27+
thiserror = "1.0.44"
28+
tokio = { version = "1.29.0, <1.39", features = ["full"] }
29+
tokio-util = "0.7.8"
30+
uuid = { version = "1.4.1", features = ["v4", "fast-rng", "macro-diagnostics"]}
31+
xdr-codec = "0.4.4"
32+
backtrace = "=0.3.74"
33+
34+
[dev-dependencies]
35+
test-case = "*"
36+
tokio = { version = "1.29.0", features = ["test-util"] }
37+
tempfile = "3.10.1"
38+
39+
[build-dependencies]
40+
xdrgen = "0.4.4"

cookbooks/aws-parallelcluster-environment/resources/efs/partial/_debian.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
def install_script_code(efs_utils_tarball, efs_utils_package, efs_utils_version)
1717
<<-EFSUTILSINSTALL
1818
set -e
19-
tar xf #{efs_utils_tarball}
2019
cd efs-utils-#{efs_utils_version}
2120
./build-deb.sh
2221
apt-get -y install ./build/#{efs_utils_package}*deb

cookbooks/aws-parallelcluster-environment/resources/efs/partial/_install_from_tar.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,23 @@
5050
action :create_if_missing
5151
end
5252

53+
bash "Untar the efs-utils" do
54+
cwd node['cluster']['sources_dir']
55+
code
56+
<<-EFSUTILSUNTAR
57+
set -e
58+
tar xf #{efs_utils_tarball}
59+
EFSUTILSUNTAR
60+
end
61+
62+
cookbook_file "#{node['cluster']['sources_dir']}/efs-utils-#{package_version}/src/proxy/Cargo.toml" do
63+
source 'efs/Cargo.toml'
64+
owner 'root'
65+
group 'root'
66+
mode '0755'
67+
action :create
68+
end
69+
5370
# Install EFS Utils following https://docs.aws.amazon.com/efs/latest/ug/installing-amazon-efs-utils.html
5471
bash "install efs utils" do
5572
cwd node['cluster']['sources_dir']

cookbooks/aws-parallelcluster-environment/resources/efs/partial/_redhat_based.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
def install_script_code(efs_utils_tarball, efs_utils_package, efs_utils_version)
1717
<<-EFSUTILSINSTALL
1818
set -e
19-
tar xf #{efs_utils_tarball}
2019
cd efs-utils-#{efs_utils_version}
2120
make rpm
2221
yum -y install ./build/#{efs_utils_package}*rpm

0 commit comments

Comments
 (0)