You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/get started/_index.md
+33-20Lines changed: 33 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,21 +19,25 @@ To begin, follow the [installation instructions](/docs/score-implementation/scor
19
19
20
20
## 2. `score.yaml`
21
21
22
-
Open your IDE and paste in the following `score.yaml` file, which describes a simple web server that queries a PostgreSQL database on each request and is exposed via a DNS. The demo code can be found [here](https://github.com/score-spec/sample-app-gif/blob/main/score.yaml).
22
+
Open your IDE and paste in the following `score.yaml` file, which describes a simple web server that queries a PostgreSQL database on each request and is exposed via a DNS. The demo code can be found [here](https://github.com/score-spec/sample-score-app/blob/main/score.yaml).
The `generate` command will add the input `score.yaml` workload with a particular container image to the `.score-compose/state.yaml` state file and generate the output `compose.yaml`.
@@ -82,12 +91,14 @@ docker compose up -d
82
91
```
83
92
84
93
```none
85
-
[+] Running 5/5
86
-
✔ Container test-routing-avhAWY-1 Running
87
-
✔ Container test-pg-t3Fg8d-1 Healthy
88
-
✔ Container test-pg-t3Fg8d-init-1 Exited
89
-
✔ Container test-wait-for-resources-1 Exited
90
-
✔ Container test-sample-main-1 Started
94
+
[+] Running 7/7
95
+
✔ Network nodejs_default Created
96
+
✔ Volume "nodejs_pg-Tut8g7-data" Created
97
+
✔ Container nodejs-pg-Tut8g7-1 Healthy
98
+
✔ Container nodejs-routing-CzbPM2-1 Started
99
+
✔ Container nodejs-pg-Tut8g7-init-1 Exited
100
+
✔ Container nodejs-wait-for-resources-1 Exited
101
+
✔ Container nodejs-hello-world-hello-world-1 Started
91
102
```
92
103
93
104
## 6. `docker ps`
@@ -99,10 +110,10 @@ docker ps
99
110
```
100
111
101
112
```none
102
-
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
103
-
58fbe97161b5ghcr.io/score-spec/sample-app-gif:main"/sample" 3 hours ago Up 7 seconds test-sample-main-1
104
-
e4bdd0126d97 mirror.gcr.io/postgres:17-alpine "docker-entrypoint.s…" 3 hours ago Up About a minute (healthy)5432/tcp test-pg-t3Fg8d-1
105
-
a03dfeea3371 mirror.gcr.io/nginx:1-alpine "/docker-entrypoint.…" 3 hours ago Up About a minute0.0.0.0:8080->80/tcp, [::]:8080->80/tcptest-routing-avhAWY-1
113
+
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
114
+
8488aa2fe204scorespec/sample-score-app:latest "node index.js"17 minutes ago Up 17 minutes3000/tcpnodejs-hello-world-hello-world-1
115
+
22c78e726612 mirror.gcr.io/nginx:1-alpine "/docker-entrypoint.…" 17 minutes ago Up 17 minutes 0.0.0.0:8080->80/tcp, [::]:8080->80/tcpnodejs-routing-CzbPM2-1
116
+
01cc858a6162 mirror.gcr.io/postgres:17-alpine "docker-entrypoint.s…" 17 minutes ago Up 17 minutes (healthy)5432/tcp nodejs-pg-Tut8g7-1
106
117
```
107
118
108
119
## 7. `curl localhost:8080`
@@ -114,7 +125,9 @@ curl localhost:8080
114
125
```
115
126
116
127
```none
117
-
SQL VERSION: PostgreSQL 17.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit
128
+
Hello, World!
129
+
This is an application talking to a PostgreSQL 17.5 database on host pg-Tut8g7, deployed with Score!
130
+
PostgreSQL 17.5 on x86_64-pc-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit
118
131
```
119
132
120
133
Congrats! You’ve successfully deploy your first Score file with the `score-compose` implementation with a sample workload talking to PostgreSQL and exposed via a DNS. You provisioned them through Docker, without writing the Docker Compose file by yourself.
Copy file name to clipboardExpand all lines: content/en/docs/overview/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ The Score file sits next to your workload’s source code in version control. Bo
56
56
57
57
## Example
58
58
59
-
Below you'll find an example of a simple Score application with a web server that queries a PostgreSQL database on each request. The demo code can be found [here](https://github.com/score-spec/sample-app-gif/blob/main/score.yaml).
59
+
Below you'll find an example of a simple Score application with a web server that queries a PostgreSQL database on each request. The demo code can be found [here](https://github.com/score-spec/sample-score-app/blob/main/score.yaml).
60
60
61
61
```yaml
62
62
# The version string helps identify the Score file syntax
0 commit comments