Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gdb-tuto.py
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
dema
gdb-tuto.py
Commits
7d36bbc5
Commit
7d36bbc5
authored
8 years ago
by
Kevin Pouget
Browse files
Options
Downloads
Patches
Plain Diff
improve
parent
6a21c3cc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
home/init.sh
+6
-1
6 additions, 1 deletion
home/init.sh
to_run
+4
-1
4 additions, 1 deletion
to_run
with
11 additions
and
3 deletions
Dockerfile
+
1
−
1
View file @
7d36bbc5
...
@@ -5,7 +5,7 @@ MAINTAINER Kevin Pouget <kpouget@imag.fr>
...
@@ -5,7 +5,7 @@ MAINTAINER Kevin Pouget <kpouget@imag.fr>
ENTRYPOINT
["bash"]
ENTRYPOINT
["bash"]
CMD
["init.sh"]
CMD
["init.sh"]
RUN
pacman
--noconfirm
--needed
-Sy
gdb strace libdwarf make binutils gcc vim
sudo
\
RUN
pacman
--noconfirm
--needed
-Sy
gdb strace libdwarf make binutils gcc vim
sudo
wget python-pip
\
&&
rm
-rf
/var/cache/pacman/pkg/
\
&&
rm
-rf
/var/cache/pacman/pkg/
\
&&
mkdir
-p
/var/cache/pacman/pkg/
&&
mkdir
-p
/var/cache/pacman/pkg/
...
...
This diff is collapsed.
Click to expand it.
home/init.sh
+
6
−
1
View file @
7d36bbc5
...
@@ -46,9 +46,14 @@ echo "root:root" | chpasswd
...
@@ -46,9 +46,14 @@ echo "root:root" | chpasswd
groupadd
--gid
$GROUPID
$USER_NAME
--non-unique
groupadd
--gid
$GROUPID
$USER_NAME
--non-unique
useradd
--uid
$USERID
--gid
$GROUPID
$USER_NAME
useradd
--uid
$USERID
--gid
$GROUPID
$USER_NAME
echo
$USER_NAME
:
$USER_NAME
| chpasswd
chown
$USER_NAME
:
$USER_NAME
/home/
$USER_NAME
/
-R
chown
$USER_NAME
:
$USER_NAME
/home/
$USER_NAME
/
-R
echo
"==++++++++++++++++++++++++++="
echo
"== Root password is 'root'"
echo
"== User (
$USER_NAME
) is '
$USER_NAME
'"
echo
"==++++++++++++++++++++++++++="
##### check strace #####
##### check strace #####
strace
ls
&>/dev/null
strace
ls
&>/dev/null
...
...
This diff is collapsed.
Click to expand it.
to_run
+
4
−
1
View file @
7d36bbc5
#! /bin/bash
HOST_DIR
=
/home/kevin/jdd_debug_data/
HOST_DIR
=
/home/kevin/jdd_debug_data/
docker run -it -v $HOST_DIR:/home/jcf/host -e GROUPID=$(id -g) -e USERID=$(id -u) --cap-add sys_ptrace kpouget/tuto-gdb.py
mkdir
-p
$HOST_DIR
docker run
--rm
-it
-v
$HOST_DIR
:/home/gdb/host
--cap-add
sys_ptrace kpouget/tuto-gdb.py
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