Skip to content

Commit

Permalink
Fix man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 authored and tsnow03 committed May 22, 2023
1 parent 7fcc428 commit 6d24b89
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
IMAGE_NAME: "cryointhecloud/cryo-hub-image"
# Put repo contents in /srv/repo, so they aren't mangled when we put user home in /home/jovyan
REPO_DIR: /srv/repo
# Fix man pages that are disabled by Ubuntu 18 minimal base image
APPENDIX_FILE: "appendix"

# Lets us monitor disks getting full as images get bigger over time
- name: Show how much disk space is left
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ described above, you can skip the first line):

```
conda-lock lock --mamba --kind explicit --file environment.yml --platform linux-64
repo2docker .
repo2docker --apendix "$(cat appendix)" .
```

This build may take up to 30 minutes.
Expand Down
13 changes: 13 additions & 0 deletions appendix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Re-enable man pages disabled in Ubuntu 18 minimal image
# https://wiki.ubuntu.com/Minimal
USER root
RUN yes | unminimize
# NOTE: $NB_PYTHON_PREFIX is the same as $CONDA_PREFIX at run-time.
# $CONDA_PREFIX isn't available in this context.
# NOTE: Prepending ensures a working path; if $MANPATH was previously empty,
# the trailing colon ensures that system paths are searched.
ENV MANPATH="${NB_PYTHON_PREFIX}/share/man:${MANPATH}"
RUN mandb

# Revert to default user
USER ${NB_USER}

0 comments on commit 6d24b89

Please sign in to comment.