The recommended way is to checkout PNF Simulator project from ONAP Git repository and use *simulator*.sh script.
If you copy *simulator.sh* script to another location, keep in mind to copy also *docker-compose.yml* and directories: *config,json_schema and netconf*.
In order to run simulator, invoke ./simulator.sh start
+You may be asked for providing password for ypur user during startup.
Script downloads if necessary needed Docker images and runs instances of these images.
+The easiest way is to download or generate PNF Simulator zip archive with all needed configuration files.
###Logging
It is possible to get access to logs by invocation of *./simulator.sh* logs.
restart: on-failure
depends_on:
- sftp-server
- - ftpes-server
+ - ftpes-server-pure-ftpd
+ - ftpes-server-vsftpd
sftp-server:
container_name: sftp-server
restart: on-failure
command: sftp-user::1001
- ftpes-server:
- container_name: ftpes-server
+ ftpes-server-pure-ftpd:
+ container_name: ftpes-server-pure-ftpd
image: stilliard/pure-ftpd:latest
ports:
- "2221:21"
FTP_USER_HOME: onap
restart: on-failure
- vsftpd_ftpes_server:
- container_name: vsftpd_ftpes_server
+ ftpes-server-vsftpd:
+ container_name: ftpes-server-vsftpd
image: docker.io/panubo/vsftpd
ports:
- "8221:21"
- ./ftpes/files/onap/ftpes-onap.txt:/srv/ftpes-onap.txt:ro
restart: on-failure
command: vsftpd /etc/vsftpd_ssl.conf
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
-
<parent>
<groupId>org.onap.oparent</groupId>
<artifactId>oparent</artifactId>
fi
}
+function set_vsftpd_file_owner() {
+ sudo chown root ./ftpes/vsftpd/configuration/vsftpd_ssl.conf
+}
+
function start_netconf_server() {
+ set_vsftpd_file_owner
docker-compose -f $1 up -d $NETOPEER_CONTAINER_NAME
echo
echo "NETCONF server container's logs:"
echo "Simulator containers are already up"
else
echo "Starting simulator containers using netconf model specified in config/netconf.env"
-
+ set_vsftpd_file_owner
archive_logs
start_netconf_server $1
docker-compose -f $1 up -d $SIMULATOR_CONTAINER_NAME
FOR DEVELOPERS
1. Build local simulator image using "./simulator.sh build"
-2. Run containers with "./simulator.sh start-debug"
+2. Run containers with "./simulator.sh start-dev"
If you change the source code you have to rebuild image with "./simulator.sh build" and run "./simulator.sh start/start-dev" again
EndOfMessage
<includes>
<include>**/*</include>
</includes>
+ <fileMode>0644</fileMode>
+
</fileSet>
<fileSet>
<directory>json_schema</directory>
<includes>
<include>**/*</include>
</includes>
+
</fileSet>
</fileSets>
</assembly>
\ No newline at end of file