Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions di/restapi/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Copyright 2017-2018 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#


# FROM dlaas-service-base:ubuntu16.04
#FROM ffdl/ffdl-restapi:v0.1.1
#FROM ubuntu:latest
FROM golang-dlv:latest

# switch to root
USER root

ADD bin/main /
ADD certs/* /etc/ssl/dlaas/
ADD ./* /MLSS-DI-GPU/restapi/
RUN chmod 755 /main

# assign "random" non-root user id
#USER 6342627

ENTRYPOINT ["/main"]
2 changes: 2 additions & 0 deletions di/restapi/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gen-swagger:
swagger generate server -m restmodels -f restapi/api_v1/swagger/swagger.yml -t restapi/api_v1/ -A dlaas -s server --exclude-main
129 changes: 129 additions & 0 deletions di/restapi/api_v1/client/dlaas_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

205 changes: 205 additions & 0 deletions di/restapi/api_v1/client/events/create_event_endpoint_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading