Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
3be9f4cd
Commit
3be9f4cd
authored
Jul 16, 2020
by
Claes
Committed by
Esteban Blanc
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docker files for project pwrtest02
parent
56cc1e9e
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1725 additions
and
2 deletions
+1725
-2
.gitignore
.gitignore
+3
-0
project/pwrtest02/build_from_git.sh
project/pwrtest02/build_from_git.sh
+2
-2
src/tools/docker/pwrtest02/Dockerfile.pwrtest02
src/tools/docker/pwrtest02/Dockerfile.pwrtest02
+17
-0
src/tools/docker/pwrtest02/configure_cvolpwrtest02.pwr_com
src/tools/docker/pwrtest02/configure_cvolpwrtest02.pwr_com
+838
-0
src/tools/docker/pwrtest02/configure_directory.pwr_com
src/tools/docker/pwrtest02/configure_directory.pwr_com
+29
-0
src/tools/docker/pwrtest02/configure_volpwrtest02.pwr_com
src/tools/docker/pwrtest02/configure_volpwrtest02.pwr_com
+775
-0
src/tools/docker/pwrtest02/create_project.sh
src/tools/docker/pwrtest02/create_project.sh
+61
-0
No files found.
.gitignore
View file @
3be9f4cd
...
@@ -17,6 +17,9 @@ project/pwrdemo/src/login/initvol.pwr_com
...
@@ -17,6 +17,9 @@ project/pwrdemo/src/login/initvol.pwr_com
project/pwrtest01/bld
project/pwrtest01/bld
project/pwrtest01/src/login/initdir.pwr_com
project/pwrtest01/src/login/initdir.pwr_com
project/pwrtest01/src/login/initvol.pwr_com
project/pwrtest01/src/login/initvol.pwr_com
project/pwrtest02/bld
project/pwrtest02/src/login/initdir.pwr_com
project/pwrtest02/src/login/initvol.pwr_com
*.db
*.db
*.db.lock
*.db.lock
*.gjl
*.gjl
...
...
project/pwrtest02/build_from_git.sh
View file @
3be9f4cd
...
@@ -41,8 +41,8 @@ else
...
@@ -41,8 +41,8 @@ else
fi
fi
platform
=
${
hw
:3
}
_
${
os
:3
}
platform
=
${
hw
:3
}
_
${
os
:3
}
#
srcdir=$pwre_croot/src/tools/docker/pwrtest02
srcdir
=
$pwre_croot
/src/tools/docker/pwrtest02
srcdir
=
/home/claes/wb
#
srcdir=/home/claes/wb
export
pwrp_root
=
$pwre_croot
/project/pwrtest02
export
pwrp_root
=
$pwre_croot
/project/pwrtest02
broot
=
$pwre_broot
/
$os
/
$hw
/bld/project/pwrtest02/bld
broot
=
$pwre_broot
/
$os
/
$hw
/bld/project/pwrtest02/bld
...
...
src/tools/docker/pwrtest02/Dockerfile.pwrtest02
0 → 100644
View file @
3be9f4cd
ARG RELEASE=debian:10
FROM $RELEASE
ARG INSTALL_UPDATE
ARG INSTALL_PWR
ARG PKG_PWR
ENV DISPLAY :1
ENV DEBIAN_FRONTEND none_interactive
COPY ./pwrtest02/create_project.sh ./pwrtest02/configure_cvolpwrtest02.pwr_com ./pwrtest02/configure_directory.pwr_com ./pwrtest02/configure_volpwrtest02.pwr_com ./pwrtest02/pwrtest02.tar.gz ./pwrtest02/wa_testall.sh ./dummy_display_xorg.conf ./$PKG_PWR ./
RUN $INSTALL_UPDATE
RUN $INSTALL_PWR
RUN apt-get install -y python
RUN apt-get install -y make pkg-config
RUN apt-get install -y xserver-xorg-video-dummy
RUN dpkg -i $PKG_PWR
RUN ./create_project.sh create
src/tools/docker/pwrtest02/configure_cvolpwrtest02.pwr_com
0 → 100644
View file @
3be9f4cd
This diff is collapsed.
Click to expand it.
src/tools/docker/pwrtest02/configure_directory.pwr_com
0 → 100644
View file @
3be9f4cd
main()
verify(0);
string nname;
string pname="pwrtest02";
string rvol = "VolPwrtest02";
string cvol = "CVolPwrtest02";
create volume/database=BerkeleyDB/name='rvol'/class=$RootVolume/identity="0.254.254.210"
create volume/database=WbLoad/name='cvol'/class=$ClassVolume/identity="0.0.240.210"
nname = get_node_name();
CreateObject(rvol, "RootVolumeConfig", "_O254.254.254.253:0", 1);
CreateObject(cvol, "ClassVolumeConfig", rvol, 3);
CreateObject("System", "$System", cvol, 3);
SetAttribute("System.SystemName", p1);
SetAttribute("System.SystemGroup", "Common");
CreateObject("Bus999", "BusConfig", "System", 3);
SetAttribute("Bus999.BusNumber", 999);
CreateObject("Pwrt02", "NodeConfig", "Bus999", 1);
SetAttribute("Bus999-Pwrt02.NodeName", nname);
SetAttribute("Bus999-Pwrt02.Address", "127.0.0.1");
SetAttribute("Bus999-Pwrt02.OperatingSystem", 128);
RenameObject("Bus999-Pwrt02-O1", rvol);
save
endmain
\ No newline at end of file
src/tools/docker/pwrtest02/configure_volpwrtest02.pwr_com
0 → 100644
View file @
3be9f4cd
This diff is collapsed.
Click to expand it.
src/tools/docker/pwrtest02/create_project.sh
0 → 100755
View file @
3be9f4cd
#!/bin/bash
ver
=
"V5.7"
pname
=
"pwrtest02"
proot
=
"/usr/pwrp/
$pname
"
ls
-l
./pwrtest02.tar.gz
Xorg
-noreset
+extension GLX +extension RANDR +extension RENDER
-config
./dummy_display_xorg.conf :99 &
sleep
20
export
DISPLAY
=
:99
export
pwra_db
=
/usr/pwrp/adm/db
cat
$pwra_db
/pwr_projectlist.dat
source
$pwra_db
/pwr_setup.sh
pwrp
set
base
$ver
#if [ "$1" == "create" ]; then
pwrp create project
$pname
$ver
$proot
"Wb test project"
echo
$pname
$ver
$proot
$pname
\"
Wb
test
project
\"
>>
$pwra_db
/pwr_projectlist.dat
echo
Vol
$pname
0.254.254.210
$pname
>>
$pwra_db
/pwr_volumelist.dat
echo
CVol
$pname
0.0.240.210
$pname
>>
$pwra_db
/pwr_volumelist.dat
#fi
dir
=
`
eval pwd
`
source
$pwra_db
/pwra_env.sh
set
project
$pname
cd
$dir
echo
"* Configure directory"
ls
/configure_directory.pwr_com
ls
-l
$pwrp_db
/directory.wb_load
wb_cmd @/configure_directory
$pname
ls
-l
$pwrp_db
/directory.wb_load
echo
"* Configure class volume"
ls
-l
$pwrp_db
/cvolpwrtest02.wb_load
ls
-l
/configure_cvolpwrtest02.pwr_com
wb_cmd
-c
cvolpwrtest02 @/configure_cvolpwrtest02
ls
-l
$pwrp_db
/cvolpwrtest02.wb_load
wb_cmd
-q
create snapshot/file
=
\"
$pwrp_db
/cvol
$pname
.wb_load
\"
/out
=
\"
$pwrp_load
/cvol
$pname
.dbs
\"
co_convert
-so
-d
$pwrp_inc
$pwrp_db
/cvol
$pname
.wb_load
echo
"* Configure root volume"
ls
-l
$pwrp_db
/volpwrtest02.db
ls
-l
/configure_volpwrtest02.pwr_com
wb_cmd
-v
vol
$pname
@/configure_volpwrtest02
echo
"* Build node pwrt02"
wb_cmd
-v
vol
$pname
build node/name
=
pwrt02
mv
/pwrtest02.tar.gz
$pwrp_exe
/
cd
$pwrp_exe
tar
-xzf
pwrtest02.tar.gz
echo
"* Run test programs"
cd
$dir
export
PYTHONPATH
=
$pwr_exe
/wa_testall.sh
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment