summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-06-16 17:05:34 -0600
committermo khan <mo.khan@gmail.com>2020-06-16 17:05:34 -0600
commitdaee8e1bf31369752a2f2cf799b1e460b866fba9 (patch)
treea2223563bab595371975860dfcc96e2c14e9d036
parentbf492273b5c3ea455cec18cb3604f81879600fba (diff)
Install asdf
-rwxr-xr-xbin/docker-shell2
-rw-r--r--config/projects/asdf.rb14
-rw-r--r--config/software/preparation.rb33
3 files changed, 19 insertions, 30 deletions
diff --git a/bin/docker-shell b/bin/docker-shell
index fa2a265..b5087a2 100755
--- a/bin/docker-shell
+++ b/bin/docker-shell
@@ -8,5 +8,5 @@ IMAGE_NAME=${IMAGE_NAME:-$(basename "$PWD"):latest}
docker run --rm -it \
--network=host \
- --volume "$PWD":/root/asdf \
+ --volume "$PWD":/root/omnibus \
"$IMAGE_NAME" /bin/bash -l
diff --git a/config/projects/asdf.rb b/config/projects/asdf.rb
index f080c48..97c1483 100644
--- a/config/projects/asdf.rb
+++ b/config/projects/asdf.rb
@@ -1,18 +1,18 @@
#
-# Copyright 2020 YOUR NAME
+# Copyright 2020 Mo Khan
#
# All Rights Reserved.
#
name "asdf"
-maintainer "CHANGE ME"
-homepage "https://CHANGE-ME.com"
+maintainer "mkhan@gitlab.com"
+homepage "https://gitlab.com/xlgmokha/omnibus-asdf"
# Defaults to C:/asdf on Windows
# and /opt/asdf on all other platforms
-install_dir "#{default_root}/#{name}"
+install_dir "/opt/asdf"
-build_version Omnibus::BuildVersion.semver
+build_version "0.1.0"
build_iteration 1
# Creates required build directories
@@ -21,5 +21,5 @@ dependency "preparation"
# asdf dependencies/components
# dependency "somedep"
-exclude "**/.git"
-exclude "**/bundler/git"
+#exclude "**/.git"
+#exclude "**/bundler/git"
diff --git a/config/software/preparation.rb b/config/software/preparation.rb
index 05ca827..f37f3e5 100644
--- a/config/software/preparation.rb
+++ b/config/software/preparation.rb
@@ -1,30 +1,19 @@
-#
-# Copyright 2020 YOUR NAME
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
name "preparation"
description "the steps required to prepare the build"
-default_version "1.0.0"
+default_version "0.7.8"
+source url: "https://github.com/asdf-vm/asdf/archive/v0.7.8.tar.gz", md5: 'c64fe16441d639669a6bf56a860e0eb4'
+relative_path "asdf-#{version}"
-license :project_license
-skip_transitive_dependency_licensing true
+license_file "#{project_dir}/LICENSE"
+#skip_transitive_dependency_licensing true
build do
block do
- touch "#{install_dir}/embedded/lib/.gitkeep"
- touch "#{install_dir}/embedded/bin/.gitkeep"
- touch "#{install_dir}/bin/.gitkeep"
+ sync "#{project_dir}/bin", "#{install_dir}/bin"
+ sync "#{project_dir}/lib", "#{install_dir}/lib"
+ command "echo 'legacy_version_file = yes' > #{install_dir}/defaults"
+ #touch "#{install_dir}/embedded/lib/.gitkeep"
+ #touch "#{install_dir}/embedded/bin/.gitkeep"
+ #touch "#{install_dir}/bin/.gitkeep"
end
end