luccych 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.en.md +36 -0
- data/README.md +31 -0
- data/Rakefile +4 -0
- data/lib/mygem/version.rb +5 -0
- data/lib/mygem.rb +10 -0
- data/plugins/hello-world/Gemfile +5 -0
- data/scripts/login.sh +3 -0
- data/sig/mygem.rbs +4 -0
- data/ubuntu22-base/.gitignore +2 -0
- data/ubuntu22-base/Vagrantfile +19 -0
- data/ubuntu22-base/makefile +34 -0
- data/ubuntu22-docker/.gitignore +2 -0
- data/ubuntu22-docker/Vagrantfile +10 -0
- data/ubuntu22-docker/makefile +34 -0
- data/ubuntu23/.gitignore +2 -0
- data/ubuntu23/Vagrantfile +52 -0
- data/ubuntu23/makefile +21 -0
- metadata +59 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 3b3e740432ce67561a319114ba6a8f58ab544fb3de51ada75693e50132d11201
|
|
4
|
+
data.tar.gz: b71bca70e88db5975da8f7b7b4c2312bbfcddb58cab5686d9ef344758f0c33b9
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 5d2b237b65295f81a564f4435d8280c2580ca921a219dbf9b82cd71dcc75fb83cf32e6aa2d8ee57fbd13bf439aef64a3cd4aaf5c1ce7573fca8de6689f18c29e
|
|
7
|
+
data.tar.gz: b5a84cf5e5df1537b5e437295bd5723f700ac741277974d99871bd936045166fe0a4df6599f1bdafb521011d3f2de7451cfd9322a6485124c471f262cfc1947f
|
data/README.en.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# vagrant-box
|
|
2
|
+
|
|
3
|
+
#### Description
|
|
4
|
+
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
|
5
|
+
|
|
6
|
+
#### Software Architecture
|
|
7
|
+
Software architecture description
|
|
8
|
+
|
|
9
|
+
#### Installation
|
|
10
|
+
|
|
11
|
+
1. xxxx
|
|
12
|
+
2. xxxx
|
|
13
|
+
3. xxxx
|
|
14
|
+
|
|
15
|
+
#### Instructions
|
|
16
|
+
|
|
17
|
+
1. xxxx
|
|
18
|
+
2. xxxx
|
|
19
|
+
3. xxxx
|
|
20
|
+
|
|
21
|
+
#### Contribution
|
|
22
|
+
|
|
23
|
+
1. Fork the repository
|
|
24
|
+
2. Create Feat_xxx branch
|
|
25
|
+
3. Commit your code
|
|
26
|
+
4. Create Pull Request
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#### Gitee Feature
|
|
30
|
+
|
|
31
|
+
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
+
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
+
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
+
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
+
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
+
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
data/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Mygem
|
|
2
|
+
|
|
3
|
+
TODO: Delete this and the text below, and describe your gem
|
|
4
|
+
|
|
5
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/mygem`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
|
10
|
+
|
|
11
|
+
Install the gem and add to the application's Gemfile by executing:
|
|
12
|
+
|
|
13
|
+
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
|
14
|
+
|
|
15
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
16
|
+
|
|
17
|
+
$ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
TODO: Write usage instructions here
|
|
22
|
+
|
|
23
|
+
## Development
|
|
24
|
+
|
|
25
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
26
|
+
|
|
27
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
28
|
+
|
|
29
|
+
## Contributing
|
|
30
|
+
|
|
31
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mygem.
|
data/Rakefile
ADDED
data/lib/mygem.rb
ADDED
data/scripts/login.sh
ADDED
data/sig/mygem.rbs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Vagrant.configure("2") do |config|
|
|
2
|
+
config.vm.box = "ubuntu/jammy64"
|
|
3
|
+
config.vm.provision "shell", inline: <<-shell
|
|
4
|
+
timedatectl set-timezone Asia/Shanghai
|
|
5
|
+
echo -e 'vagrant\nvagrant'| passwd root
|
|
6
|
+
apt-get update
|
|
7
|
+
shell
|
|
8
|
+
|
|
9
|
+
# config.vm.network "public_network", bridge: "wlx90de80c1d46d", ip: "192.168.31.170"
|
|
10
|
+
hostname="jammy-server"
|
|
11
|
+
config.vm.hostname=$hostname
|
|
12
|
+
config.vm.provider "virtualbox" do |vb|
|
|
13
|
+
vb.gui = false
|
|
14
|
+
vb.memory = "4096"
|
|
15
|
+
vb.cpus = 8
|
|
16
|
+
vb.name = $hostname
|
|
17
|
+
vb.customize ["modifyvm",:id, "--nested-hw-virt", "on"]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.PHONY: main up down package
|
|
2
|
+
|
|
3
|
+
main:
|
|
4
|
+
echo 'make [up|down|package|install-package|publish]'
|
|
5
|
+
|
|
6
|
+
up:
|
|
7
|
+
vagrant destroy -f
|
|
8
|
+
vagrant up
|
|
9
|
+
|
|
10
|
+
down:
|
|
11
|
+
vagrant destroy -f
|
|
12
|
+
|
|
13
|
+
package.box:
|
|
14
|
+
vagrant up
|
|
15
|
+
vagrant package
|
|
16
|
+
|
|
17
|
+
package:
|
|
18
|
+
make package.box
|
|
19
|
+
|
|
20
|
+
install-package: package.box
|
|
21
|
+
vagrant box add --force --name renyaoxiang/ubuntu22-base package.box
|
|
22
|
+
|
|
23
|
+
clean:
|
|
24
|
+
rm package.box
|
|
25
|
+
|
|
26
|
+
create-cloud-box:
|
|
27
|
+
vagrant cloud box create renyaoxiang/ubuntu22-base
|
|
28
|
+
vagrant cloud version create renyaoxiang/ubuntu22-base 0.0.1
|
|
29
|
+
|
|
30
|
+
publish-cloud-box: package.box
|
|
31
|
+
vagrant cloud publish --no-private --force renyaoxiang/ubuntu22-base 0.0.1 virtualbox ./package.box
|
|
32
|
+
|
|
33
|
+
relase-cloud-box: package.box
|
|
34
|
+
vagrant cloud version relase renyaoxiang/ubuntu22-base 0.0.1
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Vagrant.configure("2") do |config|
|
|
2
|
+
config.vm.box = "renyaoxiang/ubuntu22-base"
|
|
3
|
+
config.vm.provision "shell", inline: <<-shell
|
|
4
|
+
apt-get install docker.io
|
|
5
|
+
shell
|
|
6
|
+
|
|
7
|
+
# config.vm.network "public_network", bridge: "wlx90de80c1d46d", ip: "192.168.31.170"
|
|
8
|
+
hostname="docker-client"
|
|
9
|
+
config.vm.hostname=$hostname
|
|
10
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.PHONY: main up down package
|
|
2
|
+
|
|
3
|
+
main:
|
|
4
|
+
echo 'make [up|down|package|install-package|publish]'
|
|
5
|
+
|
|
6
|
+
up:
|
|
7
|
+
vagrant destroy -f
|
|
8
|
+
vagrant up
|
|
9
|
+
|
|
10
|
+
down:
|
|
11
|
+
vagrant destroy -f
|
|
12
|
+
|
|
13
|
+
package.box:
|
|
14
|
+
vagrant up
|
|
15
|
+
vagrant package
|
|
16
|
+
|
|
17
|
+
package:
|
|
18
|
+
make package.box
|
|
19
|
+
|
|
20
|
+
install-package: package.box
|
|
21
|
+
vagrant box add --force --name renyaoxiang/ubuntu22-docker package.box
|
|
22
|
+
|
|
23
|
+
clean:
|
|
24
|
+
rm package.box
|
|
25
|
+
|
|
26
|
+
create-cloud-box:
|
|
27
|
+
vagrant cloud box create renyaoxiang/ubuntu22-docker
|
|
28
|
+
vagrant cloud version create renyaoxiang/ubuntu22-docker 0.0.1
|
|
29
|
+
|
|
30
|
+
publish-cloud-box: package.box
|
|
31
|
+
vagrant cloud publish --no-private --force renyaoxiang/ubuntu22-docker 0.0.1 virtualbox ./package.box
|
|
32
|
+
|
|
33
|
+
relase-cloud-box: package.box
|
|
34
|
+
vagrant cloud version relase renyaoxiang/ubuntu22-docker 0.0.1
|
data/ubuntu23/.gitignore
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Vagrant.configure("2") do |config|
|
|
2
|
+
config.vm.box = "ubuntu/lunar64"
|
|
3
|
+
config.vm.provision "shell", inline: <<-shell
|
|
4
|
+
timedatectl set-timezone Asia/Shanghai
|
|
5
|
+
echo -e 'vagrant\nvagrant'| passwd root
|
|
6
|
+
# sed -i 's/archive.ubuntu.com/archive.aliyun.com/g' /etc/apt/sources.list
|
|
7
|
+
apt-get update
|
|
8
|
+
apt install cockpit -y
|
|
9
|
+
# sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/g' /etc/ssh/sshd_config
|
|
10
|
+
echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key
|
|
11
|
+
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN1YdxBpNlzxDqfJyw/QKow1F+wvG9hXGoqiysfJOn5Y vagrant insecure public key" >> /home/vagrant/.ssh/authorized_keys
|
|
12
|
+
|
|
13
|
+
apt-get install virtualbox vagrant -y
|
|
14
|
+
# systemctl restart sshd
|
|
15
|
+
# apt install xrdp -y
|
|
16
|
+
# systemctl enable xrdp
|
|
17
|
+
# systemctl restart xrdp
|
|
18
|
+
|
|
19
|
+
# install docker
|
|
20
|
+
sudo apt-get update
|
|
21
|
+
sudo apt-get install ca-certificates curl gnupg
|
|
22
|
+
sudo install -m 0755 -d /etc/apt/keyrings
|
|
23
|
+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
24
|
+
sudo chmod a+r /etc/apt/keyrings/docker.gpg
|
|
25
|
+
|
|
26
|
+
# Add the repository to Apt sources:
|
|
27
|
+
echo \
|
|
28
|
+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
|
|
29
|
+
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
|
30
|
+
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
31
|
+
sudo apt-get update
|
|
32
|
+
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
|
|
33
|
+
# docker sudo config
|
|
34
|
+
set +e
|
|
35
|
+
groupadd docker
|
|
36
|
+
set -e
|
|
37
|
+
usermod -aG docker vagrant
|
|
38
|
+
newgrp docker
|
|
39
|
+
systemctl restart docker
|
|
40
|
+
shell
|
|
41
|
+
|
|
42
|
+
# config.vm.network "public_network", bridge: "wlx90de80c1d46d", ip: "192.168.31.170"
|
|
43
|
+
hostname="lunar-server"
|
|
44
|
+
config.vm.hostname=$hostname
|
|
45
|
+
config.vm.provider "virtualbox" do |vb|
|
|
46
|
+
vb.gui = false
|
|
47
|
+
vb.memory = "4096"
|
|
48
|
+
vb.cpus = 8
|
|
49
|
+
vb.name = $hostname
|
|
50
|
+
vb.customize ["modifyvm",:id, "--nested-hw-virt", "on"]
|
|
51
|
+
end
|
|
52
|
+
end
|
data/ubuntu23/makefile
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.PHONY: main up down package
|
|
2
|
+
|
|
3
|
+
main:
|
|
4
|
+
echo 'make [up|down|package]'
|
|
5
|
+
|
|
6
|
+
up:
|
|
7
|
+
vagrant destroy -f
|
|
8
|
+
vagrant up
|
|
9
|
+
|
|
10
|
+
down:
|
|
11
|
+
vagrant destroy -f
|
|
12
|
+
|
|
13
|
+
package:
|
|
14
|
+
set +e
|
|
15
|
+
rm -f package.box
|
|
16
|
+
vagrant destroy -f
|
|
17
|
+
set -e
|
|
18
|
+
vagrant up
|
|
19
|
+
vagrant package --vagrantfile Vagrantfile
|
|
20
|
+
vagrant box add --force --name renyaoxiang/lunar64 package.box
|
|
21
|
+
|
metadata
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: luccych
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- renyaoxiang
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2024-01-11 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Write a longer description or delete this line.
|
|
14
|
+
email:
|
|
15
|
+
- renyaoxiang@aliyun.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- README.en.md
|
|
21
|
+
- README.md
|
|
22
|
+
- Rakefile
|
|
23
|
+
- lib/mygem.rb
|
|
24
|
+
- lib/mygem/version.rb
|
|
25
|
+
- plugins/hello-world/Gemfile
|
|
26
|
+
- scripts/login.sh
|
|
27
|
+
- sig/mygem.rbs
|
|
28
|
+
- ubuntu22-base/.gitignore
|
|
29
|
+
- ubuntu22-base/Vagrantfile
|
|
30
|
+
- ubuntu22-base/makefile
|
|
31
|
+
- ubuntu22-docker/.gitignore
|
|
32
|
+
- ubuntu22-docker/Vagrantfile
|
|
33
|
+
- ubuntu22-docker/makefile
|
|
34
|
+
- ubuntu23/.gitignore
|
|
35
|
+
- ubuntu23/Vagrantfile
|
|
36
|
+
- ubuntu23/makefile
|
|
37
|
+
homepage:
|
|
38
|
+
licenses: []
|
|
39
|
+
metadata: {}
|
|
40
|
+
post_install_message:
|
|
41
|
+
rdoc_options: []
|
|
42
|
+
require_paths:
|
|
43
|
+
- lib
|
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - ">="
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: 2.6.0
|
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0'
|
|
54
|
+
requirements: []
|
|
55
|
+
rubygems_version: 3.3.5
|
|
56
|
+
signing_key:
|
|
57
|
+
specification_version: 4
|
|
58
|
+
summary: Write a short summary, because RubyGems requires one.
|
|
59
|
+
test_files: []
|