I followed your readme file. I am trying to boot it on osx so I did not use all of your scripts. (Instead I manually ran the commands in the scripts)
Building seemed to work but when I boot up the final container this is the output
➜ docker-ansible-tower git:(master) ✗ docker run --rm -t -i -p 8222:80 --privileged \
--link postgres3:postgres \
-v ~/docker-ansible-tower/data/tower:/etc/tower \
ansible-tower /usr/sbin/init
Failed to insert module 'autofs4'
systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
Detected virtualization docker.
Detected architecture x86-64.
Welcome to CentOS Linux 7 (Core)!
Set hostname to <bedfefd3ff8e>.
Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ OK ] Reached target Swap.
[ OK ] Reached target Encrypted Volumes.
[ OK ] Reached target Network is Online.
[ OK ] Reached target Paths.
[ OK ] Created slice Root Slice.
[ OK ] Listening on udev Kernel Socket.
[ OK ] Created slice User and Session Slice.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on Delayed Shutdown Socket.
[ OK ] Listening on udev Control Socket.
[ OK ] Listening on Journal Socket.
[ OK ] Created slice System Slice.
Starting Remount Root and Kernel File Systems...
Starting Setup Virtual Console...
Starting Apply Kernel Variables...
[ OK ] Reached target Slices.
Mounting FUSE Control File System...
Mounting Huge Pages File System...
Starting Create Static Device Nodes in /dev...
Mounting Debug File System...
Starting Journal Service...
[ OK ] Mounted Huge Pages File System.
[ OK ] Started Setup Virtual Console.
[ OK ] Mounted Debug File System.
[ OK ] Mounted FUSE Control File System.
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Create Static Device Nodes in /dev.
Starting udev Kernel Device Manager...
[ OK ] Started Journal Service.
[ OK ] Started udev Kernel Device Manager.
[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
Starting Load/Save Random Seed...
[ OK ] Reached target Local File Systems (Pre).
Starting Flush Journal to Persistent Storage...
[ OK ] Reached target Local File Systems.
Starting Rebuild Journal Catalog...
Starting Rebuild Hardware Database...
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Flush Journal to Persistent Storage.
Starting Create Volatile Files and Directories...
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Rebuild Hardware Database.
Starting Update is Completed...
Starting udev Coldplug all Devices...
[ OK ] Started Update is Completed.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Reached target System Initialization.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting LSB: support init to manage tower and its related services...
Starting Login Service...
Starting System Logging Service...
Starting Resets System Activity Logs...
Starting OpenSSH server daemon...
Starting Permit User Sessions...
[ OK ] Reached target Timers.
Starting Cleanup of Temporary Directories...
[ OK ] Started D-Bus System Message Bus.
Starting D-Bus System Message Bus...
[ OK ] Started System Logging Service.
[FAILED] Failed to start LSB: support init to manage tower and its related services.
See 'systemctl status ansible-tower.service' for details.
[ OK ] Started Resets System Activity Logs.
[ OK ] Started OpenSSH server daemon.
[ OK ] Started Permit User Sessions.
[ OK ] Started Cleanup of Temporary Directories.
[ OK ] Started Command Scheduler.
Starting Command Scheduler...
[ OK ] Started Console Getty.
Starting Console Getty...
[ OK ] Reached target Login Prompts.
[ OK ] Started Login Service.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.
CentOS Linux 7 (Core)
Kernel 4.4.19-moby on an x86_64
bedfefd3ff8e login:
It is asking for a login password for centos? Is this expected?
Also, is the tower user and group required and used?
if egrep -i "^tower" /etc/group; then
echo "Group 'tower' exists, skipping group creation...";
else
sudo groupadd -g 5004 -r tower
fi
if egrep -i "^tower" /etc/passwd; then
echo "User 'tower' exists, skipping user creation...";
else
sudo useradd -r -u 5004 -c "Tower user" -m -d /opt/data/tower -g 5004 tower
fi
I followed your readme file. I am trying to boot it on osx so I did not use all of your scripts. (Instead I manually ran the commands in the scripts)
Building seemed to work but when I boot up the final container this is the output
It is asking for a login password for centos? Is this expected?
Also, is the tower user and group required and used?
Thanks for any suggestions!