-
Notifications
You must be signed in to change notification settings - Fork 0
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
Scope: Plan for deployments in case of no internet access #69
Comments
BHASAI is this https://github.com/BharatSahAIyak/docker-bhasai, right? |
https://github.com/BharatSahAIyak/devops (added now in issue description also. |
Exploring Tasks :
|
To install Step 1: Download the Packages on a Machine with Internet Access
Step 2: Transfer the Packages to the Server
Step 3: Install the Packages on the Server
If your system does not have internet access and you run apt-get install -f, it might not be able to fix the broken dependencies unless you have already downloaded the necessary packages and dependencies to your local cache or have them available in a local repository. In such cases, you would need to manually download the required packages and install them. This will install any missing dependencies from the Summary
This method allows you to install |
To build a Docker image without internet access, especially when your Steps to Build the Image Without Internet
Explanation
By following these steps, you can build your Docker image on a server without internet access using the necessary base images. |
For setting up docker : Step 1: Making the zip for pacakges:
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get download docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
tar -czvf docker-packages.tar.gz *.deb
Step 2: Transfer the Packages from Ubuntu to Mac Using
|
For now, i was having much delay with scp and rsync, so i used the below to get the tar.gz file :
|
Is there some fast way than rsync and scp to transfer file using ssh? |
We can use any method that can utilse the ssh access that we have. Does gdown utilise ssh? As per my understanding it needs internet Also, can you share total amount of data in GB (split modules wise - e.g., for docker, for gpu drivers, etc) we will need to transfer in case of offline deployment and what speed you are getting during scp. We can accordingly plan on timelines in future for offline deployments. |
@GJS2162 to share A list of components (system packages, docker images, etc)
Summarize process for 1 package installation and 1 docker image (raise a pr to add docs/no-internet-deployment.md) @singhalkarun to prepare a list of domain names that are required during runtime (not a part of this ticket) |
|
We need Internet access for various components when installing BHASAI - https://github.com/BharatSahAIyak/devops (specially pulling Docker Images). Figure out all the components which require internet access and create a process for deploying without Internet Access.
Components
System Packages
Docker Images
Domain names used. E.g. In caddy's docker-compose.yaml
Add More here @GJS2162
Questions: How is the ssh connection b/w no internet sever and other server being established.
Found this: VPN: Set up a VPN on another server within the same network as the isolated server. Once connected to the VPN, you can SSH into the isolated server using its local IP address.
The text was updated successfully, but these errors were encountered: