SLES11 SP4 gcc5.2 (SDK) in docker image

Hi!

I need a docker image of SLES11-SP4, with SDK installed, to get gcc 5.2 (see [1])
This is for use in a Jenkins setup.

I installed a SLES12, regitered it, installed docker and pulled and activated the SLES11-SP4 base image [2].

How do I add SDK / gcc5.2 to it?

Any hints welcome.
Thanks!

Cheers,
Oli

[1] https://www.suse.com/releasenotes/x86_64/SUSE-SLES/11-SP4/#fate-319015
[2] https://www.suse.com/documentation/sles-12/singlehtml/book_sles_docker/book_sles_docker.html#Building_Pre-build_Images

On 27/02/18 08:34, thinkparq wrote:
[color=blue]

I need a docker image of SLES11-SP4, with SDK installed, to get gcc 5.2
(see [1])
This is for use in a Jenkins setup.

I installed a SLES12, regitered it, installed docker and pulled and
activated the SLES11-SP4 base image [2].

How do I add SDK / gcc5.2 to it?

Any hints welcome.
Thanks!

Cheers,
Oli

[1]
https://www.suse.com/releasenotes/x86_64/SUSE-SLES/11-SP4/#fate-319015
[2]
https://www.suse.com/documentation/sles-12/singlehtml/book_sles_docker/book_sles_docker.html#Building_Pre-build_Images[/color]

From the second URL you linked “Pre-built images do not have
repositories configured. But when the Docker host has an SLE
subscription that provides access to the product used in the image,
Zypper will automatically have access to the right repositories.”.

Does your SLES12 Docker host have access to the repos for the SLE11 SP4
SDK? If so, your SLES11 SP4 container will automatically have access.
Your Dockerfile would then need to include:

–begin–
FROM suse/sles11sp4:latest

RUN zypper ref -s
RUN zypper -n in gcc5
—end—

Sorry for the late reply, if this is still an issue hopefully you’ll see
this.

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.