This project is collecting some dependencies over external resources and Docker Images over public or private Docker Registry Service.
After saving files on local network, the files is being transferred as a tar file to remote network via a SFTP connection.
You can see some configurable settings, in the first couple lines of makefile
like below:
# SFTP Configurations
# ========================================
ID_RSA :=./test_sftp/ssh/id_rsa
PORT :=22
USERNAME :=foo
HOSTNAME :=localhost
REMOTE_PATH :=/share
COMMANDS_FILE_PACKAGE :=./commands_packages.txt
COMMANDS_FILE_PROJECT :=./commands_project.txt
# Docker Registry Configurations
# ========================================
DOCKER_ID_USER :=dckrer
DOCKER_REG_DOMAIN :=https://index.docker.io/v1/
- Please, update those variables in
makefile
according to your demands and system. - Please, modify the following files to add a new dependency and Docker Image name. To extend your batch operations for SFTP, Please, change commands files, below.
- nexus.list
- docker.list
- commands_project.txt
- commands_packages.txt
We created a bunch of commands in makefile
to help you and speed up your filing operations local and remote network. Those commands are like below.
To get further information about make commands, please,check out makefile
.
To apply commands sequentially in a pipeline, you can directly hit make put_packages
on your command prompt. If you want to apply each steps individually and manually, you can use the following commands whatever you want to do at local or remote network.
Downloads dependencies over Nexus.
To add a new dependency, you can add its full link into nexus.list
Dowloads and save Docker images on local disk.
You need to define your registry service and username.
When it prompts password, please, enter your username for Docker
To extend docker images, you added Docker Image's TAG into docker.list
You can added public or private Docker Image's name into the same file, docker.list
Please, note that, you need to enter your password to reach your private Docker images
Creates check sums for each dependencies and Docker Images, to verify transfered files subsequently their check sums under to remote network
Before transfering desired files, it creates a tar for directory packages.
Creates whole projects except for a few directories, ssh, data, .git, .gitignore
Transfers tar file (packages.tar) of directory packages to remote network via sftp connection.
To make a secure establishment, you need to define RSA file on your local disk.
You can modify commands_packages.txt
to define batch operations for SFTP connection
Transfers tar file (projects.tar) of whole project to remote network via sftp connection.
You can modify commands_project.txt
to define batch operations for SFTP connection
Tests sftp connection and transfers on local computer by using Docker and Docker-Compose.
Puts projects.tar
to remote network
Puts packages.tar
to remote network
Removes all pulled images you asked in docker.list
over local Docker engine
Nexus's dependencies and Docker Images are saving under directory packages
.
It removes those files on your local disk
The following commands can be used in remote network. To use them, whole directory need to be tranfered to the destination network
Verifies check sums of transfered files on the remote network.