Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support other linux in AirGap scenario #627

Merged
merged 1 commit into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/auto-pr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
args: --timeout=10m

- name: ansible-lint
uses: ansible/ansible-lint-action@v6
uses: ansible/ansible-lint-action@v6.14.4
with:
path: "playbooks/"

Expand Down
36 changes: 36 additions & 0 deletions build/os-packages/others/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# OS package support for other linux

Please make sure these tools are installed in your OS environment:
* curl
* sshpass

## 1. How to download the tool script

``` bash
$ cd /home
$ curl -Lo ./pkgs.yml https://raw.githubusercontent.com/kubean-io/kubean/main/build/os-packages/others/pkgs.yml
$ curl -Lo ./other_os_pkgs.sh https://raw.githubusercontent.com/kubean-io/kubean/main/build/os-packages/others/other_os_pkgs.sh && chmod +x other_os_pkgs.sh
```

## 2. How to build an OS package

Since the build process will download packages, you need to make sure that the network in other linux environments can be accessed properly.

``` bash
$ cd /home
$ export PKGS_YML_PATH=/home/pkgs.yml
$ ./other_os_pkgs.sh build
```

## 3. How to install the OS package

Prepare the OS package tarball file in advance.

``` bash
$ export PKGS_YML_PATH=/home/pkgs.yml
$ export PKGS_TAR_PATH=/home/os-pkgs.tar.gz
$ export SSH_USER=root
$ export SSH_PASS=dangerous
$ export HOST_IPS='192.168.10.11 192.168.10.12'
$ ./other_os_pkgs.sh install
```
Loading