docker login -u docker -p docker nexus3.onap.org:10001
docker pull nexus3.onap.org:10001/onap/vid:5.0.1
-2. Install by running following command (Use the path for the lf_config folder under the VID git repository as CONFIG_PATH)
+2. Install by running following command (Use the path for the lf_config folder under the VID git repository as CONFIG_PATH and path for .jks files for CERTS_PATH, usually epsdk-app-onap/src/main/webapp/WEB-INF/cert )
.. code-block:: bash
docker run --name vid-mariadb -e MYSQL_DATABASE=vid_openecomp_epsdk -e MYSQL_USER=vidadmin -e MYSQL_PASSWORD=YOUR_PASSWORD -e MYSQL_ROOT_PASSWORD=ROOT_PASSWORD -v CONFIG_PATH/vid-my.cnf:/etc/mysql/my.cnf -v /var/lib/mysql -d mariadb:10
#start VID server
- docker run -e VID_MYSQL_DBNAME=vid_openecomp_epsdk -e VID_MYSQL_PASS=YOUR_PASSWORD --name vid-server -p 8080:8080 --link vid-mariadb:vid-mariadb-docker-instance -d nexus3.onap.org:10001/onap/vid:5.0.1
+ docker run -e VID_MYSQL_DBNAME=vid_openecomp_epsdk -e VID_MYSQL_PASS=YOUR_PASSWORD -v CERTS_PATH:/opt/app/vid/etc --name vid-server -p 8080:8080 --link vid-mariadb:vid-mariadb-docker-instance -d nexus3.onap.org:10001/onap/vid:5.0.1
Or use docker-compose:
.. code-block:: bash
- docker-compose up
\ No newline at end of file
+ docker-compose up
$http.get('flags').then(function (results) {\r
var flags = [];\r
for (var key in results.data) {\r
- flags.push({"key":key, "active":results.data[key]})\r
+ flags.push({"key":key, "active":results.data[key]});\r
}\r
featureFlags.set(flags);\r
- })\r
+ });\r
});\r
private final SystemPropertyHelper systemPropertyHelper;
private final SSLContextProvider sslContextProvider;
+ private final String certFilePath;
+ FeatureManager featureManager;
+
+ /** The logger. */
+ static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(org.onap.vid.aai.util.HttpsAuthClient.class);
+
public HttpsAuthClient(String certFilePath, SystemPropertyHelper systemPropertyHelper, SSLContextProvider sslContextProvider, FeatureManager featureManager) {
this.certFilePath = certFilePath;
this.featureManager = featureManager;
}
- private final String certFilePath;
-
- FeatureManager featureManager;
-
- /** The logger. */
- static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(org.onap.vid.aai.util.HttpsAuthClient.class);
-
/**
* Gets the client.
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class LeanCloudConfiguration {
+
+ public String lcpCloudRegionId;
+
+ public String tenantId;
+
+ public String cloudOwner;
public LeanCloudConfiguration() {
}
this.cloudOwner = cloudConfiguration.getCloudOwner();
}
- public String lcpCloudRegionId;
-
- public String tenantId;
-
- public String cloudOwner;
}
private FeatureManager featureManager;
private JobCommandFactory jobCommandFactory;
private EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(JobSchedulerInitializer.class);
+ public static final List<Job.JobStatus> WORKERS_TOPICS = ImmutableList.of(
+ Job.JobStatus.PENDING,
+ Job.JobStatus.CREATING,
+ Job.JobStatus.IN_PROGRESS,
+ Job.JobStatus.RESOURCE_IN_PROGRESS,
+ Job.JobStatus.PENDING_RESOURCE
+ );
+
@Autowired
public JobSchedulerInitializer(
}
- public static final List<Job.JobStatus> WORKERS_TOPICS = ImmutableList.of(
- Job.JobStatus.PENDING,
- Job.JobStatus.CREATING,
- Job.JobStatus.IN_PROGRESS,
- Job.JobStatus.RESOURCE_IN_PROGRESS,
- Job.JobStatus.PENDING_RESOURCE
- );
-
@PostConstruct
public void init() {
WORKERS_TOPICS.forEach(topic->scheduleJobWorker(topic, 1));
import org.hibernate.SessionFactory;
import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
import org.onap.vid.aai.AaiClientInterface;
-import org.onap.vid.aai.ExceptionWithRequestInfo;
import org.onap.vid.aai.model.ResourceType;
import org.onap.vid.dal.AsyncInstantiationRepository;
import org.onap.vid.exceptions.DbFailureUncheckedException;