Welcome!
This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
This question has been flagged
Create the machine
Create a classic DS3 azure vm
Set ssh on random port number
Add endpoints for ssh, http, https
Create a new premium disk (SSD) and mount it
sudo grep SCSI /var/log/syslog
sudo fdisk /dev/sdc
n
p
...
w
sudo mkfs -t ext4 /dev/sdc1
mkdir /data
sudo mount /dev/sdc1 /data
sudo -i blkid
nano /etc/fstab
eg UUID=33333333-3b3b-3c3c-3d3d-3e3e3e3e3e3e /data ext4 defaults 1 2
test
sudo umount /data
sudo mount /data
Update sshd port
nano /etc/ssh/sshd_config
change to 22<server number>
service sshd restart
Add to the domain
Check Ubuntu version
lsb_release -a
Install Docker
https://docs.docker.com/engine/installation/linux/ubuntulinux/
sudo usermod -aG docker <username>
sudo systemctl enable docker
Make Docker use the new disk [if needed]
sudo mkdir /data/docker
sudo service docker stop
mv /var/lib/docker /data/
ln -s /data/docker /var/lib/docker
ls /var/lib/docker/
sudo service docker start
Install Docker Compose
Add iscsi User
login as root
adduser iscsi
generate a new password: http://passwordsgenerator.net/
sudo usermod -aG docker iscsi
sudo su iscsi
ssh-keygen
cd ~/.ssh
cat id_rsa.pub > authorized_keys
cat id_rsa
cat id_rsa.pub
copy keys https://code.inspiredsoftware.com.au/admin/deploy_keys
create dns in studiocoast eg local-docker-s10.inspiredsoftware.com.au
create dns in domain controller
Create a new server in the portal
for a customer on premise server, append customer code with (On-premise Production)
copy in the server details and the keys from the previous step
Configure new Docker credentials
go to https://hub.docker.com/ and register a new account
ID: iscsi<businessname>
Email: info+iscsi.<businessname>@inspiredsoftware.com.au
Random password: http://passwordsgenerator.net/
save settings in server docker credentials with Name: Docker Hub <businessname>
accept verification email
login to http://hub.docker.com
create a new private repo called odoo
add iscsi and iscsi2 as collaborators
create a docker image called <customername>/odoo
perform a login on the server with docker login
Add git keys to GitLab
Add public key with a name of EXTERNAL - <full comany name> - <full designation> Server to http://code.inspiredsoftware.com.au/admin/deploy_keys
Enable deploy key on:
http://code.inspiredsoftware.com.au/inspired-software/docker-odoo-deploy/deploy_keys
http://code.inspiredsoftware.com.au/inspired-software/nginx-proxy/deploy_keys
[Optional] If you need to fix the file permissions
login as sudo
chown -R iscsi:iscsi /data
chown -R iscsi:iscsi /mnt/data
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
1
May 16
|
36 | ||
|
|
1
May 16
|
41 |