Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Dockerfile to build/run the GAP from current source #5937

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

BaseMax
Copy link

@BaseMax BaseMax commented Feb 13, 2025

No description provided.

@BaseMax
Copy link
Author

BaseMax commented Feb 13, 2025

Tested on a Windows machine:

C:\Users\MAX\gap> docker build -t gap .
[+] Building 85.8s (11/11) FINISHED                                                                                                     docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                                    0.0s
 => => transferring dockerfile: 357B                                                                                                                    0.0s
 => [internal] load metadata for docker.io/library/alpine:latest                                                                                        2.1s
 => [internal] load .dockerignore                                                                                                                       0.0s
 => => transferring context: 2B                                                                                                                         0.0s
 => [1/6] FROM docker.io/library/alpine:latest@sha256:56fa17d2a7e7f168a043a2712e63aed1f8543aeafdcee47c58dcffe38ed51099                                  0.0s
 => => resolve docker.io/library/alpine:latest@sha256:56fa17d2a7e7f168a043a2712e63aed1f8543aeafdcee47c58dcffe38ed51099                                  0.0s
 => [internal] load build context                                                                                                                      21.1s
 => => transferring context: 548.34MB                                                                                                                  21.1s
 => CACHED [2/6] RUN apk add --no-cache     build-base     autoconf     automake     libtool     gmp-dev     zlib-dev     curl     git                  0.0s
 => CACHED [3/6] WORKDIR /opt                                                                                                                           0.0s
 => [4/6] COPY . .                                                                                                                                      1.4s
 => [5/6] RUN ./autogen.sh &&     ./configure &&     make -j$(nproc)                                                                                   32.9s
 => [6/6] RUN adduser -D -g "" gapuser                                                                                                                  0.4s
 => exporting to image                                                                                                                                 27.6s
 => => exporting layers                                                                                                                                23.5s
 => => exporting manifest sha256:2899b3862420a4c9b36cf3e9dd3904f651acdad9aee29a53ad3e9b2d43ed095e                                                       0.0s
 => => exporting config sha256:67637846c257bf2c2e722025ccd3fbd3265ce740a10666bd2230a4b335b096d9                                                         0.0s
 => => exporting attestation manifest sha256:948134aee83f8f9b30a69e64a3deb0196706c4728a2894eb1668f43014726c57                                           0.0s
 => => exporting manifest list sha256:069ac1ec441852b35af7c647e37c3e562d131652855eb9f106f83b9278d2c32b                                                  0.0s
 => => naming to docker.io/library/gap:latest                                                                                                           0.0s
 => => unpacking to docker.io/library/gap:latest                                                                                                        4.0s

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/i8diq87cp6yip2bshex3wmii8

C:\Users\MAX\gap> docker run --rm -it gap
 *********   GAP 4.12dev-2232-gdb98c35 built on 2025-02-13 10:05:36+0000
 *  GAP  *   https://www.gap-system.org
 *********   Architecture: x86_64-pc-linux-musl-default64-kv10
 Configuration:  gmp 6.3.0, GASMAN
 Loading the library and packages ...
#I  gapdoc package is not available. Check that the name is correct
#I  and it is present in one of the GAP root directories (see '??RootPaths')
#I  GAP: needed package gapdoc cannot be loaded
Error, failed to load needed package `gapdoc' (version >= 1.2) at /opt/lib/package.gi:2038 called from
func(  ); at /opt/lib/system.g:231 called from
<function "CallAndInstallPostRestore">( <arguments> )
 called from read-eval loop at /opt/lib/init.g:693
you can 'quit;' to quit to outer loop, or
you can 'return;' to continue
brk>

image

@fingolfin
Copy link
Member

Hi there, thank you for contributing! However I am not sure we'd want this in this form right now. And I genuinely mean it like that: there are already several docker files for GAP in other repositories under the gap-system org, but all are unmaintained. I'll ask some folks to have a look here, thougj.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants