PDA

View Full Version : Docker & SUSE Manager



ollenburg
01-Jun-2017, 12:45
Hi,
we are implementing Docker in our environment and I want to start bulding my own images/containers. The problem: how to install/update software inside my images? We are using SUSE Manager and the Docker hosts are registered against it, do not have acces neither to SCC nor a SMT. Any ideas?
Greetings
Andreas

ab
01-Jun-2017, 14:40
While I can see that this kind of spans two issues, I think in this case
the issue is probably more appropriate in the Virtualization area than the
SUSE Manager area, as I do not think SUSE Manager will be directly
involved in managing your images. As a result, your duplicate thread is
probably the best place for this:

http://forums.suse.com/showthread.php?t=9502

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.

kwk
02-Jun-2017, 07:22
Move to SUSE Manager 3.1, to be released end of June, which has container management included.

ollenburg
02-Jun-2017, 07:28
Hi,

I read about the cool new features of SuMa3.1 and was searching for any release dates. Thanks for the info. Four weeks to go... :-)

Greetings from Germany
Andreas

pfoerfr
17-Aug-2017, 14:14
Now we have August and SUMA 3.1 is out since end of June!

any news and howto's available to setup and use SUMA 3.1 as configuration plattforme for docker images?

regards
Franz

smflood
17-Aug-2017, 16:37
On 17/08/17 14:24, pfoerfr wrote:

> Now we have August and SUMA 3.1 is out since end of June!
>
> any news and howto's available to setup and use SUMA 3.1 as
> configuration plattforme for docker images?

Have you seen
https://www.suse.com/communities/blog/no-beta-blockers-suse-manager-3-1-lets-get-ready-containers/
?

HTH.
--
Simon
SUSE Knowledge Partner

------------------------------------------------------------------------
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------

pfoerfr
18-Aug-2017, 09:26
On 17/08/17 14:24, pfoerfr wrote:

> Now we have August and SUMA 3.1 is out since end of June!
>
> any news and howto's available to setup and use SUMA 3.1 as
> configuration plattforme for docker images?

Have you seen
https://www.suse.com/communities/blog/no-beta-blockers-suse-manager-3-1-lets-get-ready-containers/
?

HTH.
--
Simon
SUSE Knowledge Partner

------------------------------------------------------------------------
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------

yes, I know this blog.

but in the usage of this feature some steps are not discribed.

First I have to say I am a docker beginner. And the SUSE docker examples at https://www.suse.com/documentation/sles-12/singlehtml/book_sles_docker/book_sles_docker.html are not working behind our company firewall.

So, my hope was SUMA 3.1 is the solution.

In the meantime I build up a docker-registry with ssl and ldap enabled portus. This seams to be working.

on suse manager, one host is enabled as container-build-host. the salt story did not work ... first add the container channels, after this maybe the stuff is working.

I try to follow the blog but the image profiles details not shown.

there are some parameters

Label: <the name> - I understood
Image Type: Dockerfile - only Dockerfile available, choice
Path: <git-url> - is real a git necessary? with authentication and so on? why not a http/https url for testing ...
Activation Key: <activationkey> - for the repos ... is a separate key necessary with special channels? salt states ...
Custom Info Values: <our custom fields> - how could I use them at the container? some special salt states inside of the container

this raises more questions than answers.

regards
Franz

kwk
01-Sep-2017, 09:00
First I have to say I am a docker beginner. And the SUSE docker examples at https://www.suse.com/documentation/sles-12/singlehtml/book_sles_docker/book_sles_docker.html are not working behind our company firewall.

So, my hope was SUMA 3.1 is the solution.


https://wiki.microfocus.com/index.php/SUSE_Manager/imagebuilding has an initial description of the container image building feature of SUSE Manager 3.1.
A more elaborate chapter in the best practices manual will follow.



Image Type: Dockerfile - only Dockerfile available, choice


Well, building a container with Docker and a Dockerfile was the obvious initial choice for us.
There are other means (like Salt - dockerng) and we'll see what gains sufficient popularity to be supported in SUSE Manager.



Path: <git-url> - is real a git necessary? with authentication and so on? why not a http/https url for testing ...


Yes, based on the feedback from customers, sales, and consulting, managing Dockerfiles with git is the most popular choice.

Setting up a git server is simple, Google provides many examples



Activation Key: <activationkey> - for the repos ... is a separate key necessary with special channels? salt states ...


The activation key determines the channels visible to the client. Building containers is all about having the 'right' packages in the container. This is ensured via the activation key.



Custom Info Values: <our custom fields> - how could I use them at the container? some special salt states inside of the container


Leave this field empty for your initial tests.

so_it_team
14-Nov-2017, 14:16
I am also struggling with this, for example;

1) For the Image Store URI, I intend to use a Portus registry. Do I need
to put the FQDN and port number or just FQDN? For example,
portus.domain.com:5000 ?

2) For the profiles, does the git path require no authentication? It is
not clear how I should authenticate to my git repository?

3) Where can I find the logs? I only see in the Events > Pending of the
Container Build host that the action has not yet been picked up (it
never gets picked up so I assume I did something wrong)

Thanks

kwk
15-Nov-2017, 10:18
Looks like you've asked this through multiple channels ... :-/

We will update https://wiki.microfocus.com/index.php/SUSE_Manager/imagebuilding with all required information.

so_it_team
15-Nov-2017, 12:31
OK great thanks, I see that work has already started to update the wiki

so_it_team
15-Nov-2017, 15:18
Great, i have it working now...

For anyone else who needs the same answers:

1) Registry URL must contain port and the namespace

2) this format: https://gitlab-ci-token:XXXXXXXXXX@gitlab.example.com/johndoe/myrepo.git#master:/images/slesbasic/

3) rhn/rhn_web_ui.log rhn/rhn_taskomatic_daemon.log and salt/master or salt/api