Sign inSign up

leavesask/gcc

By leavesask

Updated over 6 years ago

GCC built for application development (deprecated)

Image
0

740

leavesask/gcc repository overview

Layers Version Commit Docker Pulls Automated Build

Supported tags

  • 9.2.0
  • 8.3.0
  • 7.3.0

How to use

  1. Install docker engine

  2. Pull the image

docker pull leavesask/gcc:<tag>
  1. Run the image interactively
docker run -it --rm leavesask/gcc:<tag>

How to build

make

There are a bunch of build-time arguments you can use to build the image.

It is hightly recommended that you build the image with make.

# Build an image for GCC 9.2.0
make GCC_VERSION="9.2.0"

# Build and publish the image
make release GCC_VERSION="9.2.0"

Check Makefile for more options.

docker build

As an alternative, you can build the image with docker build command.

docker build \
        --build-arg BASE_TAG="latest" \
        --build-arg GCC_VERSION="9.2.0" \
        --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
        --build-arg VCS_REF=`git rev-parse --short HEAD` \
        -t my-repo/gcc:latest .

Arguments and their defaults are listed below.

  • BASE_TAG: value (default=latest)

  • GCC_VERSION: X.X.X (default=9.2.0)

  • GCC_OPTIONS: option[=value]

    • Defaults to --enable-languages=c,c++ --disable-multilib --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl --target=x86_64-alpine-linux-musl --disable-libsanitizer --disable-libatomic --disable-libitm
    • Options needed to configure the installation.
    • The default installation path is /opt/gcc/${GCC_VERSION} so that option --prefix is unnecessary.

Tag summary

Content type

Image

Digest

Size

625.3 MB

Last updated

over 6 years ago

docker pull leavesask/gcc