Commit 315f57e6 authored by Mauritz, Falk Marius's avatar Mauritz, Falk Marius
Browse files

It's docking now

Missing Enviroment Variables TODO
parent 97196c21
Pipeline #5150 failed with stage
in 21 seconds
# Files and directories created by pub
.dart_tool/
.packages
# Remove the following pattern if you wish to check in your lock file
pubspec.lock
# Conventional directory for build outputs
build/
# Directory created by dartdoc
doc/api/
.idea/
docker.compose.yml
.dockerignore
.git/
.gitignore
Dockerfile
\ No newline at end of file
......@@ -14,6 +14,6 @@ build:
script:
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
- docker build -t $IMAGE_TAG-mm -f Dockerfile-MM .
- docker build -t $IMAGE_TAG-mm -f Dockerfile .
- docker push $IMAGE_TAG-mm
version: '0.1'
services:
client:
build: .
volumes:
- "./frontend:/app"
ports:
- "80:80"
depends_on:
- middleman
middleman:
build: .
volumes:
- "./middleman:/app"
\ No newline at end of file
version: '3'
services:
client:
image: frontend
build:
context: .
dockerfile: frontend/Dockerfile
ports:
- "8080:80"
middleman:
image: middleman
build:
context: .
dockerfile: middleman/Dockerfile
ports:
- "8888:8888"
postgres:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
FROM google/dart:2.2 AS builder
ENV PATH="${PATH}:/root/.pub-cache/bin"
RUN pub global activate webdev
COPY ./frontend/ /root/build-here/
WORKDIR /root/build-here
RUN pub get && \
webdev build --output web:build
RUN pub global activate webdev
COPY frontend/pubspec.yaml /root/build-here/
RUN pub get
COPY frontend/ /root/build-here/
RUN pub get && webdev build --output web:build
FROM nginx
EXPOSE 80
......
import 'dart:js';
import 'package:demo/src/model/day.dart';
......
FROM google/dart:2.2 AS builder
ENV PATH="${PATH}:/root/.pub-cache/bin"
RUN pub global activate aqueduct
COPY ./middleman/ /app/
WORKDIR /app
COPY middleman/pubspec.yaml /app/
RUN pub get
COPY middleman/ /app/
RUN pub get
EXPOSE 8888
ENTRYPOINT ["pub", "run", "aqueduct:aqueduct", "serve", "--port", "8888"]
\ No newline at end of file
......@@ -53,7 +53,6 @@ linter:
- parameter_assignments
- prefer_adjacent_string_concatenation
- prefer_asserts_in_initializer_lists
- prefer_bool_in_asserts
- prefer_collection_literals
- prefer_conditional_assignment
- prefer_const_constructors
......
database:
host: localhost
host: postgresql
port: 5432
username: dart
password: dart
......
database:
host: localhost
host: postgres
port: 5432
username: cal_user
password: password
username: docker
password: docker
databaseName: calendar
\ No newline at end of file
......@@ -29,8 +29,9 @@ class AppointmentController extends ResourceController {
@Operation.get()
Future<Response> getAllAppointments() async {
final appointmentQuery = Query<Appointment>(context);
final heroes = await appointmentQuery.fetch();
return Response.ok(heroes);
final appointments = await appointmentQuery.fetch();
print(appointments.toString());
return Response.ok(appointments);
}
@Operation.get('id')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment