Skip to content

Commit

Permalink
update: rm docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark24Code committed Jun 27, 2024
1 parent 4057565 commit e0ac96d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 37 deletions.
22 changes: 0 additions & 22 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -180,25 +180,3 @@ task :clean do
sh "rm -rf #{BUILD_DIR} && mkdir #{BUILD_DIR}"
sh "rm -rf #{CACHE_DIR} && mkdir #{CACHE_DIR}"
end

namespace :release do
desc "linux:amd64"
task :"linux:amd64" do
system("docker buildx build --platform linux/amd64 -f #{DOCKER_DIR}/Dockerfile.linux -t linux-amd64 .")
system("docker container create --name linux-amd64-01 linux")
system("mkdir -p ./release/linux/amd64")
system("docker cp linux-amd64-01:/mruby-devkit/build ./release/linux/amd64")
system("docker container rm -f '/linux-amd64-01'")
system("tar -czvf ./release/linux-amd64.tar.gz ./release/linux/amd64")
end

desc "linux:arm64"
task :"linux:arm64" do
system("docker buildx build --platform linux/arm64 -f #{DOCKER_DIR}/Dockerfile.linux -t linux-arm64 .")
system("docker container create --name linux-arm64-01 linux")
system("mkdir -p ./release/linux/arm64")
system("docker cp linux-arm64-01:/mruby-devkit/build ./release/linux/arm64")
system("docker container rm -f '/linux-arm64-01'")
system("tar -czvf ./release/linux-arm64.tar.gz ./release/linux/arm64")
end
end
15 changes: 0 additions & 15 deletions docker/Dockerfile.linux

This file was deleted.

Binary file removed release/linux-amd64.tar.gz
Binary file not shown.
Binary file removed release/linux-arm64.tar.gz
Binary file not shown.

0 comments on commit e0ac96d

Please sign in to comment.