Commit Graph

31 Commits

Author SHA1 Message Date
Craig Osterhout
bec47fdcd3 get-started: refresh python lang specfic guide (#17852)
* update python lang spec guide

Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
2023-08-09 14:48:19 -07:00
Guillaume Lours
b92ebe5fbf Replace docker-compose calls (#17881)
* use 'docker compose' instead of 'docker-compose' in Swarm documentation

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>

* replace old usages of 'docker-compose' by 'docker compose'

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>

---------

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
2023-08-08 10:05:39 +01:00
Ekwinder Saini
88c5a53bda Modify "stop" to "stop and remove" to avoid container name conflict error. (#17816)
Added instruction to removed the container along with stopping it to avoid error - You have to remove (or rename) that container to be able to reuse that name.
2023-07-24 11:29:51 -07:00
Ekwinder Saini
9cfbe87392 Modifying pip3 install to python3 -m pip install for consistency across guide modules (#17815)
* Modifying pip3 install to python3 -m pip install for consistency across guide modules

In the other pages of the guide python3 -m pip install is used instead of pip3 install, the former being better practice as well. Therefore, replacing the use of pip3 install commands to the recommended one.
2023-07-24 11:20:43 -07:00
Stuzanna
2670723799 Updated mysql output to 2023 version 2023-05-27 09:51:09 +01:00
Younes Chouikh
014b05a91e Update develop.md (#17383)
Executing "USE inventory" query instead of closing and connecting again
2023-05-23 13:10:59 -07:00
Nghiauet
e5df3a3799 Correct docker compose command (error with "-") (#16426)
I already removed it
2023-01-04 13:54:11 +00:00
Craig Osterhout
217166a8d8 add reminder to stop containers (#15868) 2022-10-14 09:50:22 -07:00
Craig Osterhout
912608daad removing debugging references (#15863) 2022-10-13 08:55:25 -07:00
Daniel Schroeder
2706acd2ec Update develop.md (#15829)
There is no logic in that Flask app to save widgets, so I reworded the two sentences that referenced saving widgets. 

There are two routes:
1. `/widgets` -> Gets all the rows from the `widgets` table
2. `/initdb` -> Drops the DB/Table and rebuilds them from scratch
2022-10-11 14:14:12 -07:00
meni181818
a7a9824350 python indentation 4 spaces according to PEP8 (#15129)
* python indetation 4 spaces acording to PEP8

* docker-compose example networking explanation

exlpain why no need to connect the 2 containers to a network
2022-09-30 09:22:56 +00:00
CrazyMax
561118ec5b rename docs repository
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-09-29 11:07:53 +02:00
Stefan Scherer
bcc2a90f52 Use host port 8000 to avoid conflicts on Monterey
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
2022-02-09 13:05:34 +01:00
Rayed Bin Wahed
122645e717 Update develop.md
Accidental subject-verb agreement error. Made the verb singular to agree with the singular subject Docker.
2022-02-02 12:00:38 +08:00
Kyle Martin
57b5a647ad Very minor style update to included sample Python
Inconsequential and trivial change to ensure code in tutorial is consistently styled.
2021-12-27 19:20:04 -07:00
Wajdi Al-Hawari
a9a8311643 Improves how requirements.txt is created
- To reduce the error prone process of grabbing all Python packages in the global Python scope, the specific package is extracted and set in to the requirements.txt file
2021-09-11 16:30:23 -04:00
Sebastiaan van Stijn
74460241f8 language/python: use "console" for shell examples
This allows for easier copying of the commands, without selecting the
prompt.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-06 17:20:00 +02:00
Usha Mandya
fe46aa5c1f Merge pull request #13142 from Sammeeey/patch-3
Adjusted sentence to make more clear what to do
2021-07-13 11:06:43 +01:00
Sammeeey
5ece5aa899 Adjusted sentence to make more clear what to do
ihih
2021-07-07 13:41:48 +02:00
Sammeeey
e52dfc1353 Add "-dev"-suffix to new image
I've added a "-dev"-suffix in the lines where we are working with the new python-docker image.
In this way we do not overwrite the previous one
2021-07-07 12:18:12 +02:00
syunwei
1c1a9a094e Added docker compose file and docker volume references into python de… (#12739)
* Added docker compose file and docker volume references into python develop.md

* Style update

Co-authored-by: Cathy Huang <my-email@example.com>
Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2021-05-06 07:00:16 +01:00
Sebastiaan van Stijn
a463d3290f use primary-btn instead of outline-btn
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-04-13 16:34:01 +02:00
Stefan Scherer
57ed6ccb21 Fix some commands to make tutorial work
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
2021-03-24 15:49:28 +01:00
Matthijs Boonstra
7e1554b500 Update develop.md
Quick grammar fix: run -> runs
Set the mysql server to use the root password as used in the Flask application

Changed checking the MySQL server from using `docker run` to `docker exec` since you want to log in to the existing mysql container. Added the password as set by the previous `docker run` command.

Changed @app.route to `initdb`, the path used in later parts of the tutorial.

(cherry picked from commit 473930c972)
2021-03-24 15:36:30 +01:00
Usha Mandya
6eddfb8e66 Merge pull request #12371 from mradamt/master
Update code snippets, typo, formatting
2021-03-24 14:28:33 +00:00
Matt Rhoads
12c794d68c Fixed typo (#12359)
Changed database reference from MongoDB to MySQL
2021-03-11 15:10:03 +00:00
荒野大镖客
5adb870c96 Update develop.md
the curl  address  is /initdb
2021-02-26 17:17:02 +08:00
Adam Tyler
f7a1fcb594 Update code snippets, typo, formatting 2021-02-22 19:20:56 -08:00
Usha Mandya
4b828eeaed Update links and remove extra spaces
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-01-29 17:09:03 +00:00
Usha Mandya
c23d1daf63 Add Python get started docs (#12184)
* Add Python get started docs

Signed-off-by: Usha Mandya <usha.mandya@docker.com>

* Address Anca's review comments

Signed-off-by: Usha Mandya <usha.mandya@docker.com>

* Update pip to pip3

Signed-off-by: Usha Mandya <usha.mandya@docker.com>

* Update pip freeze to pip3 freeze

Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-01-28 17:46:36 +00:00
Usha Mandya
ba395bed07 Add reference architecture docs
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-01-18 12:07:55 +00:00