Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
Newstar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Legacy
WSRT
Newstar
Commits
a7bc4f86
Commit
a7bc4f86
authored
7 years ago
by
Tammo Jan Dijkema
Browse files
Options
Downloads
Patches
Plain Diff
Add Dockerfile
parent
f4149e09
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/Dockerfile
+35
-0
35 additions, 0 deletions
docker/Dockerfile
docker/Dockerfile-doc
+10
-0
10 additions, 0 deletions
docker/Dockerfile-doc
with
45 additions
and
0 deletions
docker/Dockerfile
0 → 100644
+
35
−
0
View file @
a7bc4f86
# Install the base image through https://github.com/ds82/ubuntu-hardy-8.04-i386-docker
# We use an old ubuntu because g77 is not supported in newer ubuntu's
FROM
ubuntu:8.04
# Install dependencies
RUN
apt-get update
&&
apt-get
install
-y
build-essential git tcsh g77 wget vim libx11-dev libncursesw5-dev
RUN
useradd
-ms
/bin/tcsh newstar
USER
newstar
# Obtain source code
WORKDIR
/home/newstar
RUN
wget
--no-check-certificate
-q
https://github.com/tammojan/Newstar/archive/master.tar.gz
RUN
tar
xf master.tar.gz
&&
mv
Newstar-master/
*
.
&&
rmdir
Newstar-master
&&
rm
master.tar.gz
# Set required environment variables for newstar, this replaces the logic in $n_root/src/sys
ENV
n_site=docker \
n_install=li \
n_hosts=docker-newstar \
n_ftp=ftp.astron.nl \
n_root=/home/newstar \
n_hlp=/home/newstar/hlp
# Initialize paths etc at tcsh login
RUN
echo
'source $n_root/src/sys/newstar_env.csh \nsource $n_root/src/sys/newstar_init.csh'
>>
/home/newstar/.cshrc
# Build newstar
WORKDIR
/home/newstar/src
RUN
tcsh
-c
'nup build -u wntinc'
RUN
tcsh
-c
'nup build -u -t:exe wntinc'
RUN
tcsh
-c
'nup build -u all'
WORKDIR
/home/newstar
ENTRYPOINT
tcsh
This diff is collapsed.
Click to expand it.
docker/Dockerfile-doc
0 → 100644
+
10
−
0
View file @
a7bc4f86
FROM newstar
# The following is only necessary for generating the documentation
USER root
RUN apt-get update && apt-get install -y imagemagick texlive-full
USER newstar
# Documentation: convert xbm into png since modern webbrowsers don't understand xbm
RUN cd $n_hlp && find . -name '*.xbm' -exec sh -c 'convert $0 ${0%.xbm}.png' {} \;
RUN cd $n_hlp && find . -name '*.html' -exec sed -i -e 's/\.xbm/.png/g' {} \;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment