Skip to content

Commit

Permalink
Merge pull request #539 from perftool-incubator/dev-kmr2
Browse files Browse the repository at this point in the history
remove custom built engine bash
  • Loading branch information
k-rister authored Aug 14, 2024
2 parents 35ce9e9 + fd0abcf commit c5db4b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 48 deletions.
2 changes: 1 addition & 1 deletion engine/bootstrap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/local/bin/bash
#!/usr/bin/bash
# -*- mode: sh; indent-tabs-mode: nil; sh-basic-offset: 4 -*-
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=bash
#
Expand Down
2 changes: 1 addition & 1 deletion engine/engine-script
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/local/bin/bash
#!/usr/bin/bash
# -*- mode: sh; indent-tabs-mode: nil; sh-basic-offset: 4 -*-
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=bash
exec 2>&1
Expand Down
2 changes: 1 addition & 1 deletion engine/engine-script-library
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/local/bin/bash
#!/usr/bin/bash
# -*- mode: sh; indent-tabs-mode: nil; sh-basic-offset: 4 -*-
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=bash

Expand Down
46 changes: 1 addition & 45 deletions rickshaw-run
Original file line number Diff line number Diff line change
Expand Up @@ -753,51 +753,7 @@ sub build_reqs {
# that does not exist, we want to match an imagewith as many requirements
# as possible and add only what we need.

# The most common requirement is expected to be source built bash
# -- this provides a common bash feature set across all userenvs
my $bash_req_file = $config_dir . "/bash-req.json";
my %bash_req = (
'workshop' => {
'schema' => {
'version' => '2020.03.02'
}
},
'userenvs' => [
{
'name' => 'default',
'requirements' => [
'bash_src'
]
}
],
'requirements' => [
{
'name' => 'bash_src',
'type' => 'source',
'source_info' => {
'url' => 'https://mirrors.ibiblio.org/gnu/bash/bash-5.2.21.tar.gz',
'filename' => 'bash.tar.gz',
'commands' => {
'unpack' => 'tar -xzf bash.tar.gz',
'get_dir' => 'tar -tzf bash.tar.gz | head -n 1',
'commands' => [
'./configure --prefix=/usr/local',
'make',
'make install',
'/usr/local/bin/bash --version'
]
}
}
}
]
);
if (put_json_file($bash_req_file, \%bash_req) > 0) {
printf "build_container_image(): put_json_file() failed\n";
exit 1;
}
push (@$req_ref, "--requirement " . $bash_req_file);

# The next most common requirment is expected to be the toolbox.
# The most common requirment is expected to be the toolbox.
my $tb_req_file = $config_dir . "/toolbox-req.json";
my %tb_req = (
'workshop' => {
Expand Down

0 comments on commit c5db4b9

Please sign in to comment.