Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
golang
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NOC
golang
Commits
0d788040
Commit
0d788040
authored
3 years ago
by
Zhu, Ling Dr (Elec Electronic Eng)
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
4f26ee85
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+26
-0
26 additions, 0 deletions
Dockerfile
with
26 additions
and
0 deletions
Dockerfile
0 → 100644
+
26
−
0
View file @
0d788040
# builder
FROM
gitlab-registry.eps.surrey.ac.uk/noc/golang:latest
WORKDIR
/go/src
USER
root
RUN
apt-get update
RUN
apt-get
install
-y
nano vim curl
RUN
curl
-LO
https://storage.googleapis.com/kubernetes-release/release/
$(
curl
-s
https://storage.googleapis.com/kubernetes-release/release/stable.txt
)
/bin/linux/amd64/kubectl
RUN
chmod
+x ./kubectl
RUN
mv
./kubectl /usr/local/bin
# Customise PS1
RUN
touch
/root/.bashrc
RUN
echo
"[ -z
\"\$
PS1
\"
] && return"
>>
/root/.bashrc
RUN
echo
"PS1=
\"\\
[
\\
033[35m
\\
][
\\
u@
\\
h
\\
w]:
\\
[
\\
033[37m
\\
]
\"
"
>>
/root/.bashrc
RUN
echo
"alias kt='kubectl'"
>>
/root/.bashrc
RUN
echo
"alias ktp='kubectl get pod -o wide'"
>>
/root/.bashrc
RUN
echo
"alias kts='kubectl get svc -o wide'"
>>
/root/.bashrc
RUN
echo
"alias ktd='kubectl get deployment -o wide'"
>>
/root/.bashrc
RUN
echo
"alias ktn='kubectl get node -o wide'"
>>
/root/.bashrc
RUN
echo
"alias ktv='kubectl get pv -o wide'"
>>
/root/.bashrc
RUN
echo
"alias ktvc='kubectl get pvc -o wide'"
>>
/root/.bashrc
EXPOSE
8181
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